Toggle navigation
PxPlus User Forum
PxPlus User Forum
»
Main Board
»
Discussions
»
Programming
»
Working with DLL
Likes
« previous
next »
Print
Pages: [
1
]
Author
Topic: Working with DLL (Read 2430 times)
HendersonS
Gold Member
Posts: 59
Working with DLL
«
on:
May 13, 2020, 11:44:38 AM »
Hi All,
Recently we are working with several DLL´s, and they give us error 15 when traying to load them, anyone knows more information about this error ?
thaks,
Henderson S.
Logged
Devon Austen
Administrator
Diamond Member
Posts: 386
Don’t Panic
Re: Working with DLL
«
Reply #1 on:
May 13, 2020, 02:03:19 PM »
This error is reported when PxPlus could not load the DLL. There are a couple of common reasons the DLL could not be loaded:
1. The DLL is 64-bit (32-bit applications cannot load 64-bit DLLs)
2. The DLL can't find or is missing dependencies (If you copied the DLL into the PxPlus directory you may need to copy it's dependencies as well or point pxplus at the DLL install directory instead)
3. Corrupted file
I don't know anything about that DLL you are trying to load so I can't guess which issue it is.
Logged
Principal Software Engineer for PVX Plus Technologies LTD.
Stéphane Devouard
Diamond Member
Posts: 123
PxPlus guru with skills in PHP, JS, C#, Java
Re: Working with DLL
«
Reply #2 on:
May 14, 2020, 01:59:01 AM »
Make sure this is a real Win32 DLL
A .Net component class could also be compiled as file with a .dll extension but would not be suitable for use with the PxPlus DLL() function
Logged
Stéphane Devouard
Portfolio
|
Work
HendersonS
Gold Member
Posts: 59
Re: Working with DLL
«
Reply #3 on:
May 14, 2020, 11:32:31 AM »
thanks for your reply, i realized it is a 64 bit dll, is there any way to work in pxplus with 64 bit dll?
Logged
Mike King
Diamond Member
Posts: 3824
Mike King
Re: Working with DLL
«
Reply #4 on:
May 14, 2020, 11:51:02 AM »
PxPlus 2020 (version 17), due to be released this month, will be available on Windows in either 32 or 64 bit.
So, if you can wait a week or so you could use PxPlus 2020 to call your 64 Bit DLLs.
Logged
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com
Devon Austen
Administrator
Diamond Member
Posts: 386
Don’t Panic
Re: Working with DLL
«
Reply #5 on:
May 14, 2020, 11:59:30 AM »
Our Windows PxPlus is 32-bit. 32-bit applications cannot load 64-bit DLLs.
Luckily we have a Windows 64-bit version of PxPlus that will be release very soon. You will need to have a license for PxPlus 2020 to use it though.
If that is not an option usually you can find a 32-bit version of the DLL you want to use.
If that is not an option then you will have to create a 64-bit executable/COM wrapper that PxPlus can invoke to interact with the 64-bit DLL. You will have to create the exe or COM wrapper using a compiled language like c++.
Here is some instructions on building a COM wrapper:
https://manual.pvxplus.com/?Automation%20in%20PxPlus/Usage%20and%20Examples/COM%20Wrapper%20Example.htm
Logged
Principal Software Engineer for PVX Plus Technologies LTD.
HendersonS
Gold Member
Posts: 59
Re: Working with DLL
«
Reply #6 on:
May 14, 2020, 12:58:45 PM »
Thanks for your help, now update or use a DLL 32 is not an option, to use a com wraper the link that contains a .zip doesn't work.
«
Last Edit: May 14, 2020, 01:03:28 PM by HendersonS
»
Logged
Devon Austen
Administrator
Diamond Member
Posts: 386
Don’t Panic
Re: Working with DLL
«
Reply #7 on:
May 14, 2020, 01:54:32 PM »
Try this link:
http://www.pvxplus.com/downloads/misc/SimpleCOM.zip
Logged
Principal Software Engineer for PVX Plus Technologies LTD.
HendersonS
Gold Member
Posts: 59
Re: Working with DLL
«
Reply #8 on:
May 14, 2020, 04:38:11 PM »
Thanks, I will try this way.
Logged
Print
Pages: [
1
]
« previous
next »
PxPlus User Forum
»
Main Board
»
Discussions
»
Programming
»
Working with DLL