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
 Origin Forum
 external DLL cannot find function

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
shafei Posted - 01/23/2012 : 12:34:36 PM
Hi, The problem is that I am trying to convert some of my codes from C++ to DLL so they run faster. To do this I started learning how to create DLL files (using VS 2010) and then implement them in Origin C. Unfortunately I get an error that I brought in the subject. The problem is that I am doubtful if it is the problem with the DLL file that I generate using VS or there are something about Origin that I need to figure out!
I started with extremely simple code:

#include "stdafx.h" //This header was included in the file VS //generated

int multiple(int t)
{
int i;
i = 2 * t;
return i;
}

Then I made a dll file with help of some videos online (http://www.youtube.com/watch?v=I0uGEJKcyik), generated separate header file using this link: http://www.originlab.com/www/support/resultstech.aspx?language=english&ID=997

and then wrote a simple code in Origin to run the dll file.
#include <Origin.h>
#include "C:\Creator\lastTest\lastTest\lastTest.h"

int MyDLLTest()
{
int k;
int j;
j =2;
k = multiple (2);
return k;
}

Unfortunately I constantly get this error that external DLL cannot find function ..... multiple.
I would really appreciate your help.
Thanks
2   L A T E S T    R E P L I E S    (Newest First)
shafei Posted - 01/23/2012 : 5:38:47 PM
Hi Easwar,
I did not get a response, so I thought maybe I submitted the problem to a wrong category.
Best
Shoresh
easwar Posted - 01/23/2012 : 3:55:17 PM
Hi,

Please don't post same question in multiple forums....see:
http://originlab.com/forum/topic.asp?TOPIC_ID=10102
for answer.

Thanks,

Easwar
OriginLab

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