West Wind Client Tools
Why can not I load a library? .net
Gravatar is a globally recognized avatar based on your email address. Why can not I load a library? .net
  Gustavo
  All
  Jul 18, 2017 @ 04:18pm

I am using wwDotNetBridge. Work with a couple of .net libraries Charge the same way both

loBridge.loadassembly("HasarLibreriaFiscal3561.dll")
oPrinter = loBridge.CreateInstance("hfl.argentina.HasarImpresoraFiscalRG3561")

loBridge.loadassembly("FusionClass.dll")
oFusion = loBridge.CreateInstance("FusionClass.Fusion")

With the "oFusion" object I have no problems working. It's not the same with the "oPrinter" object. It may be because the dll ("HasarLibreriaFiscal3561.dll") es comvisible = .f. ??

Is there any way to load a library of this type? How do I know if the library can be used or not?

Gravatar is a globally recognized avatar based on your email address. re: Why can not I load a library? .net
  Rick Strahl
  Gustavo
  Jul 24, 2017 @ 02:26pm

Look at the error message to see what's wrong. Most likely you're not loading a dependency or accessing an invalid constructor signature for the .NET object.

+++ Rick ---

© 1996-2017