| T O P I C R E V I E W |
| illysam |
Posted - 02/20/2004 : 11:00:22 AM Hi,
I try to call an external DLL I programmed in Delphi from a LabTalk script using the LabTalk command 'dll' as follows:
dll ExampleDLL ExampleFunction ('ExampleFunction' returns an integer value and needs no parameters)
and get the following error message:
'The DLL function EXAMPLEFUNCTION can not be found in the given library.'
What is the correct way to call a function in an external DLL from LabTalk?
Also: where do I find 'Origin's external DLL convention' mentionned in the LabTalk help file?
Thanks, Rolf.
Origin 7.0 SR4 |
| 4 L A T E S T R E P L I E S (Newest First) |
| illysam |
Posted - 02/26/2004 : 08:30:03 AM eparent,
good call! I had to rename both, the exported function and the dll to only uppercase letters to make it work.
Thanks, Rolf. |
| eparent |
Posted - 02/23/2004 : 11:26:33 AM Rolf,
LabTalk is not a case sensitive language and will uppercase commands and arguments during execution. I suspect your DLL function name contains lower case letters. Try renaming your exported function with only uppercase letters.
|
| illysam |
Posted - 02/23/2004 : 10:25:25 AM CP,
unfortunately, I am trying to avoid calling the dll from OriginC (btw the dll works fine when called from OriginC).
Any ideas where to find documentation for 'Origin's external DLL convention'?
Thanks again, Rolf. |
| cpyang |
Posted - 02/21/2004 : 11:13:47 AM Best would be to call DLL functions from Origin C.
CP
|