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
 Calling Functions in User DLL via 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
cdrozdowski111 Posted - 01/21/2015 : 7:19:26 PM
Wasn't sure which forum to but this in. It's both C and LabTalk.

I've built a DLL coded in VC++ (not a fitting function) as well the applicable header file. I can call functions in the DLL via Origin C.

But I can't call them directly via LabTalk unless I create an Origin C wrapper function. And yes, the functions are compiled into the workspace.

Can in fact, such functions be called directly in LT?

EDIT
===
The depends application shows that the functions are exported from the DLL. And I've also seen this post: http://www.originlab.com/forum/topic.asp?TOPIC_ID=7859 though I had already written my header file correctly before I saw that post.
2   L A T E S T    R E P L I E S    (Newest First)
cdrozdowski111 Posted - 01/22/2015 : 5:47:36 PM
That answers my question.

If I want to call a function in my DLL from LabTalk, for example:

double d1 = 1.23; double d2 = myfunc(d1, 0);d2=;

I have to wrap it in an Origin C function.
Castiel Posted - 01/22/2015 : 12:09:32 PM


But what are you going to do with nothing but a string? MOCA? Python's there, go try it!

©c¡Ï   ¤È¥¹  ©f¨u©c  ©c¥ì    ¥Î¤³  ©c/     ©¦£¯
 ©c¨Ê¥Î ¤´¥¨  ¥ó ¨×   ¥ó¤á' ¥Ì©¦¥­   /¤í  ¥Õ©¦©f
   ¨Ö             ¦á          ©¦£þ  ©` ¥Õ   ©¦
                              ©¦

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