Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Error trying to call .NET DLL (solved)

$
0
0
Hi,

I am using WD 20 to connect to an external keypad device. I've imported the .NET DLL into my project with no issues but when I try to to create the Object I get the following error.


Error at line 1 of Click BTN_Open_Device process.
Unable to create <MTPPSCRANET.MTPPSCRA> object (<C:\My Projects20\Tourcube\MTPPSCRANET.dll> assembly)

----- Technical Information ---

Project : Tourcube

WL call:
Process of 'Click BTN_Open_Device' (WINTest_Magtek.BTN_Open_Device), line 1, thread 0

What happened?
Unable to create <MTPPSCRANET.MTPPSCRA> object (<C:\My Projects20\Tourcube\MTPPSCRANET.dll> assembly)

Error code: 200005
Level: fatal error (EL_FATAL)

Dump of the error of 'wd200net4.dll' module (20.0.8.0).
Identifier of detailed information (.err): 200004
Additional Information:
EIT_PILEWL :
Click BTN_Open_Device (WINTest_Magtek.BTN_Open_Device), line 1
EIT_DATEHEURE : 27/08/2017 10:33:45

Help




My code to call the procedure looks like this.

clMagtek is object MTPPSCRA

sModel is string=clMagtek.getDeviceModel()

Info(sModel)

Any ideas as to what might be going on? Things I'm missing? I don't typically use external .NET DLL's in my application (or object oriented methods) so I don't have a lot of experience with these things.

Any help would be greatly appreciated.

Thanks!

Steve

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>