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
 Calling Functions in User DLL via 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

cdrozdowski111

USA
247 Posts

Posted - 01/21/2015 :  7:19:26 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

Edited by - cdrozdowski111 on 01/22/2015 06:23:55 AM

Castiel

343 Posts

Posted - 01/22/2015 :  12:09:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply


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

妾+   午旦  妹罕妾  妾伊    用仇  妾/     岫ㄞ
 妾京用 仍巨  件 侈   件戶' 甘岫平   /欠  白岫妹
   併             艮          岫  奈 白   岫
                              岫
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 01/22/2015 :  5:47:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

Edited by - cdrozdowski111 on 01/22/2015 5:50:31 PM
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