Trevster344
Member
At work there is a activeX component dll that has dozens of very many important calls for security purposes. Whenever I add a reference to the dll CrossDll.DLL the wrapper is created and the object CrossDll.Primary is accessible but instancing the object blows up the program and gives me the error:
[h=2]Unable to cast COM object of type 'System.__ComObject' to interface type 'CrossDll.Primary'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B859230C-ADD6-43B2-BB10-D02357BB42C4}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).[/h]I tried declaring an object and instantiating it with the CreateObject("CrossDll.Primary") which worked but any calls into the dll that might cause it to make it's own calls to another dll lead to chaos.
I've double checked with the author of the library and it is a valid activex com dll. Is there something I need to do in my application to make it work? I'm using it in an asp.net application. Also is there something the author needs to do when compiling the dll? Does anyone have any experience with this?
[h=2]Unable to cast COM object of type 'System.__ComObject' to interface type 'CrossDll.Primary'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B859230C-ADD6-43B2-BB10-D02357BB42C4}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).[/h]I tried declaring an object and instantiating it with the CreateObject("CrossDll.Primary") which worked but any calls into the dll that might cause it to make it's own calls to another dll lead to chaos.
I've double checked with the author of the library and it is a valid activex com dll. Is there something I need to do in my application to make it work? I'm using it in an asp.net application. Also is there something the author needs to do when compiling the dll? Does anyone have any experience with this?