Multi OS redux

It might look ugly now, but I now have the frequency setting working on Mac OS X. I am using the excellent cross platform USB HID library here:

Unusually for cross platform system libraries, it’s actually easier to use than natively trying to hack the API directly.

One slight “feature” was that there’s a 64 bit incompatibility in the library in the get_long_property function where it assumes the C “long” datatype is 32 bits which I fixed.

This entry was posted in Uncategorized. Bookmark the permalink.

5 Responses to Multi OS redux

  1. Mike says:

    Are you going to use maybe the Qt cross platform framework to develop your application?

    • admin says:

      Hello Mike.

      Not sure yet. I have been playing with the Fox Toolkit over the past few days on Ubuntu and Windows, but I am having trouble compiling it on OS X. It seems to have a well structured set of documentation going with it.


  2. Mike says:

    Hi Howard,

    Here is an open source project in Qt:

  3. Mike says:

    I always tend to use explicit __int32 and unsigned __int16 rather than short, long etc. Hopefully we can always expect an __int32 to be 4 bytes. Not so sure about the byte order though, Intel or Motorola.

    I will be very interested if you are able to provide a library or DLL we can link to as I use Borland C++ Builder rather than MS Visual C++.

    • admin says:

      Hi Mike.

      The bug was in the third party USB HID library I mentioned that I am using. Still, not a bad way to brush off a 20+ year hiatus from Mac programming. I have taken a look at Qt. It looks possible, although I fear it may be a steeper learning curve than Fox Toolkit. The first tutorial left me feeling a bit like a script monkey I’m afraid.