steve4king
IS-IT--Management
I'm trying to access a MagTek library to control some hardware. (IPADLib.dll / MTIPADlib.dll)
MagTek has also included MYIPADLib.h and MTIPADLib.lib. (The MT..dlls are used for VC/VB)
I found a .tlb in some sample code which loaded into the Fox object browser, so Intellisense is working. However, I'm unable to create an olecontrol class from any of the DLLs. Attempting to do so results in an Error box with no dialog.
This code results in "Class not Registered".
I originally attempted to register a library with regsvr32, after that failed, I used regasm which returned, "Type registered successfully". Despite this, Fox still complains that it is not registered.
Do I need to create my own wrapper in C# with the correct exposure?
Can I use the MT...Dlls with simpler declare instead?
Thanks,
-Stephen
MagTek has also included MYIPADLib.h and MTIPADLib.lib. (The MT..dlls are used for VC/VB)
I found a .tlb in some sample code which loaded into the Fox object browser, so Intellisense is working. However, I'm unable to create an olecontrol class from any of the DLLs. Attempting to do so results in an Error box with no dialog.
Code:
LOCAL ctlIPAD as "IPADLib.IPAD"
ctlIPAD = CREATEOBJECTEX("IPADLIB.IPAD","","")
ctlIPAD.RequestSig(50,1)
This code results in "Class not Registered".
I originally attempted to register a library with regsvr32, after that failed, I used regasm which returned, "Type registered successfully". Despite this, Fox still complains that it is not registered.
Do I need to create my own wrapper in C# with the correct exposure?
Can I use the MT...Dlls with simpler declare instead?
Thanks,
-Stephen