Click here to Skip to main content
15,904,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Migration to C++.NET Pin
Stephen Hewitt5-May-06 23:01
Stephen Hewitt5-May-06 23:01 
GeneralRe: Migration to C++.NET Pin
Phil C6-May-06 6:19
Phil C6-May-06 6:19 
GeneralRe: Migration to C++.NET Pin
Stephen Hewitt6-May-06 18:29
Stephen Hewitt6-May-06 18:29 
GeneralRe: Migration to C++.NET Pin
Phil C6-May-06 19:42
Phil C6-May-06 19:42 
QuestionRevisiting calling a function in another dll Pin
LuckyCarl5-May-06 15:08
LuckyCarl5-May-06 15:08 
AnswerRe: Revisiting calling a function in another dll Pin
Michael Dunn5-May-06 16:03
sitebuilderMichael Dunn5-May-06 16:03 
AnswerRe: Revisiting calling a function in another dll Pin
Stephen Hewitt5-May-06 18:27
Stephen Hewitt5-May-06 18:27 
AnswerRe: Revisiting calling a function in another dll Pin
Laxman Auti5-May-06 18:40
Laxman Auti5-May-06 18:40 
Hi LuckyCarl,

I have tested your code and it really not give the address of the function.

and got the solution for this.

As C++ by default mangles the name of the function and then link it as per my knowledge

if you create the function in the DLL using
extern "C", it avoids name mangling and function treated as C type function

so your function declaration should like following.
extern "C" __declspec(dllexport) int foo(char*,char*,char*);

and definition like
extern "C" __declspec(dllexport) int foo(char *f1,char*f2,char*f3)
{
...
}


and trying to debug the code for calling the fucntion from another dll

Knock out 'T' from CAN'T
You 'CAN' if you think you 'CAN'
Cool | :cool:

-- modified at 1:10 Saturday 6th May, 2006
AnswerRe: Revisiting calling a function in another dll Pin
Laxman Auti5-May-06 19:02
Laxman Auti5-May-06 19:02 
QuestionCSocket timeout Pin
JBAK_CP5-May-06 14:17
JBAK_CP5-May-06 14:17 
AnswerRe: CSocket timeout Pin
led mike5-May-06 17:43
led mike5-May-06 17:43 
QuestionHiding a data file from users Pin
chasetoys5-May-06 12:17
chasetoys5-May-06 12:17 
AnswerRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 17:20
Maxwell Chen5-May-06 17:20 
AnswerRe: Hiding a data file from users Pin
Stephen Hewitt5-May-06 18:34
Stephen Hewitt5-May-06 18:34 
GeneralRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 19:12
Maxwell Chen5-May-06 19:12 
GeneralRe: Hiding a data file from users Pin
Hamid_RT5-May-06 19:22
Hamid_RT5-May-06 19:22 
GeneralRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 19:29
Maxwell Chen5-May-06 19:29 
GeneralRe: Hiding a data file from users Pin
Hamid_RT5-May-06 19:40
Hamid_RT5-May-06 19:40 
GeneralRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 20:00
Maxwell Chen5-May-06 20:00 
GeneralRe: Hiding a data file from users Pin
Hamid_RT5-May-06 20:12
Hamid_RT5-May-06 20:12 
GeneralRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 20:16
Maxwell Chen5-May-06 20:16 
AnswerRe: Hiding a data file from users Pin
led mike5-May-06 20:55
led mike5-May-06 20:55 
GeneralRe: Hiding a data file from users Pin
Phil C5-May-06 21:43
Phil C5-May-06 21:43 
GeneralRe: Hiding a data file from users Pin
chasetoys5-May-06 22:19
chasetoys5-May-06 22:19 
AnswerRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 22:30
Maxwell Chen5-May-06 22:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.