On Thursday, March 21, 2002, at 07:21 PM, Oleg Svirgstin wrote:
Hi all,
Actually, the problem I have concerns CFPLugIn, or even CFPlugInCom.
I am accessing USB interfaces from an application (no kernel mode,
etc), and
I have some problems with accessing calling "QueryInterface".
Is there an example of working with all these USB structures from C++?
It seems I will have to add a lot of plain C workarounds, adding a lot
of
extra time to an overdue project... But what if there is a way to stay
effective?
Thanks in advance for any help.
Oleg
Are you using Apple C++ (from ProjectBuilder) or Metrowerks C++
from CodeWarrior? Is your C++ app CFM?
I have not used ProjectBuilder much for C++, however I have gotten
IOKit USB working in a CodeWarrior PowerPlant app and it did involve
some additional layers and wrappers. Basically, I first wrote a C module
for my device, then compiled it into a CFBundle and wrote another C
module to call into the bundle using opaque types and function pointers,
and finally wrote a C++ utility class to use the bundle-calling,
function-pointer
module. I couldn't find any easier way to use IOKit from a CFM MSL C++
app.
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.