Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IOKit and C++: "invalid conversion from 'void*' to 'void**'"



Hello list,

this question has been asked on this list before, but I was unable to find a conclusive answer. So forgive me for asking again:

In several places of the Apple documentation I find this snippet:

kr = (*plugInInterface)->QueryInterface(plugInInterface, 
                                                        CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), 
                                                        (LPVOID)&deviceInterface);

Could it be that it acutally has to be casted to (LPVOID *)? While C and Objective-C do not complain, C++ does. Or is there more to it?

Thanks

Alex

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.