Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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!