|
I get the error code above when trying to execute a command line application written in VB.Net 2005. I am basically importing the Faxcomexlib.dll file to automatically fax to devices. The program works fine from most pc's, but certain pc's fail with the error above when trying to create an interface for the Faxcomexlib.faxserverclass. I have tried several things, but so far I have been unsuccessful. My latest attempt was to use the activator class instead of a direct object call in case the problem was with the unmanaged code. Here is that code:
'Activator class attempt does not work at all
Dim t As Type = Type.GetTypeFromProgID("FAXCOMEXLIB.FaxServerClass ")
Dim obj As System.Object = Activator.CreateInstance(t)
Dim objFS As IFaxServer = obj
'Standard object call that works for most PC's, but not all
Dim objFS As New FAXCOMEXLib.FaxServer
Anyone seen this error? Also, can anyone explain the use for the Activator class?
|