File Exchange
Try Origin for Free
The Origin Forum
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
|
Send File to Tech support
Username:
Password:
Save Password
Forgot your Password?
|
Admin Options
All Forums
Origin Forum for Programming
LabTalk Forum
DLL from LabTalk
New Topic
Reply to Topic
Printer Friendly
Author
Topic
illysam
Canada
13 Posts
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
cpyang
USA
1407 Posts
Posted - 02/21/2004 : 11:13:47 AM
Best would be to call DLL functions from Origin C.
CP
illysam
Canada
13 Posts
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.
eparent
118 Posts
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
Canada
13 Posts
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.
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Forum
Origin Viewer Forum
Origin Learning Edition Forum
Origin Forum for Programming
Forum for Python
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
LabTalk Forum
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000