This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

hid client example

Hello,
I have bought the Keil development tool for mcb2148 and I'm trying to compile the HID client example that comes with it... However using borland c++ 6 I get lots of error messages. If anyone knows how to solve this please leave me a note.
Thanks
Doug

Parents
  • You seem to get into the porting trouble of MFC (Microsoft Foundation Class).
    I think it is the waste of your valuable time.
    Rather, split out the example code into building blocks, and ignore the GUI and framework of MFC.

    The essential blocks for USB handling are,
    - The SetupDi-APIs are used to specify the device, and to get the device handle.
    - USB communication is done over this device handle, using File I/O, CreateFile - ReadFile - WriteFile - CloseHandle.

    These code are stereotype one, and they works either in MSVC or C++ builder without modification, because these code use just the Windows APIs directly. Plug these blocks into the framework and GUI of C++ builder.

    Blind porting doesn't bring you any understanding of USB handling.

    Tsuneo

Reply
  • You seem to get into the porting trouble of MFC (Microsoft Foundation Class).
    I think it is the waste of your valuable time.
    Rather, split out the example code into building blocks, and ignore the GUI and framework of MFC.

    The essential blocks for USB handling are,
    - The SetupDi-APIs are used to specify the device, and to get the device handle.
    - USB communication is done over this device handle, using File I/O, CreateFile - ReadFile - WriteFile - CloseHandle.

    These code are stereotype one, and they works either in MSVC or C++ builder without modification, because these code use just the Windows APIs directly. Plug these blocks into the framework and GUI of C++ builder.

    Blind porting doesn't bring you any understanding of USB handling.

    Tsuneo

Children