.NET Development
CreateInstance
Gravatar is a globally recognized avatar based on your email address. CreateInstance
  Gustavo
  All
  Aug 24, 2017 @ 12:14pm

I have a dll quiro instanciar an object and I do not. No error or anything, simply tells me that it is not an object. that could be happening???

loBridge = CreateObject("wwDotNetBridge", "v2")
loBridge.LoadAssembly("HasarLibreriaFiscal3561.dll")
oFiscal = loBridge.CreateInstance("hfl.argentina.HasarImpresoraFiscalRG3561")
oFiscal.Conectar("127.0.0.1")

There is no error. but it does not work

Gravatar is a globally recognized avatar based on your email address. re: CreateInstance
  Rick Strahl
  Gustavo
  Aug 24, 2017 @ 02:41pm

Does the constructor to that object have parameters? Most likely it doesn't have a parameterless constructor.

Check loBridge.cErrorMsg if oFiscal is null.

+++ Rick ---

© 1996-2017