The Origin Forum
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 Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

illysam

Canada
13 Posts

Posted - 02/20/2004 :  11:00:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Best would be to call DLL functions from Origin C.

CP




Go to Top of Page

illysam

Canada
13 Posts

Posted - 02/23/2004 :  10:25:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

eparent

118 Posts

Posted - 02/23/2004 :  11:26:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.


Go to Top of Page

illysam

Canada
13 Posts

Posted - 02/26/2004 :  08:30:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
eparent,

good call! I had to rename both, the exported function and the dll to only uppercase letters to make it work.

Thanks, Rolf.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000