![]() I did register both VB6 ocx files using regsvr32. Once I host these OCXes in C# form, they get added as and then I use this instantiation in C#. If I do not use AxInterop and directly use Interop DLLs, then other exceptions happens like object variable not set, but AxInterop I hope is theġ. #import "PQR.OCX" raw_interfaces_only no_implementationĮxtern "C" _declspec(dllexport) BOOL _stdcall ObjectSupportsPQRInterface(/**/ VARIANT* pVar) #import "ABC.OCX" raw_interfaces_only no_implementation C++ Helper API to confirm PQR ActiveX Control supports the _PQR Default Interface.ġ.1 Are you familar with C++ ? Or at least the creation of a DLL using Visual C++ ?ġ.2 I suggest that you create a helper DLL (which will eventually contain various exported utility APIs) that can help us analyse the problem deeper.ġ.3 Include the following exported API : // HelperDLL01.cpp : Defines the exported functions for the DLL application. IDispatchPtr spDispatch = V_DISPATCH(pVar)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |