LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LPDISPATCH error

I am developeing an instrument driver that uses the attached header file to define prototypes used in a third party dll.
Still cannot build dll with type information.
Getting attached error from the compiler.

Note: When LDISPATCH is right clicked (oaidl.h) file comes up with definition which is not in my project.

Note2: This file builds fine without requesting a dll build with type resource information.
Download All
0 Kudos
Message 1 of 2
(2,801 Views)
No, you can't build type information into a DLL that uses interface pointers in the function calls. IDispatch pointers come from Windows SDK interfaces that we can translate from the C data type to the ActiveX data type. Your only option would be to create wrapper code around these functions that cast the LPDISPATCH types to some other pointer (such as void *) and then when you use the functions from another program cast the void * pointers to a IDispatch pointer.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,801 Views)