Hi.

Mind you, but backporting any source from an ActiveX component to a portable library is a pain-in-the-ass thing to do. A more useful approach would be to have three classes:
  • a class providing serial port access
  • a class providing the actual OBD-II interface
  • a wrapper class around these that provides the ActiveX component
That way, you will not have to actually transform an ActiveX component into something portable, but rather wrap something portable into an ActiveX component. If you want to port it, simply dump the wrapper class, port the serial port class and write a new wrapper for the new target architecture.

If you want to go a pretty portable way (though not for the empeg), you might want to use the Qt library (www.trolltech.com).
If you would like someone to check your code for portability to Unix/Linux, I can lend a hand. But don't expect me to invest much time before end of July. I have to finish my diploma thesis by July, 21st and also am still working on two empeg projects: extended upgrade image (boot from /dev/hda2) for the empeg and porting the GD library. The latter turned out to be far more complex than I thought.

cu,
sven
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord