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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 DLL from LabTalk

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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





The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000