Click here to Skip to main content
15,909,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C2065 Error Pin
subramanyeswari8-May-07 19:08
subramanyeswari8-May-07 19:08 
GeneralRe: C2065 Error Pin
toxcct8-May-07 21:51
toxcct8-May-07 21:51 
GeneralRe: C2065 Error Pin
subramanyeswari9-May-07 2:32
subramanyeswari9-May-07 2:32 
GeneralRe: C2065 Error Pin
subramanyeswari9-May-07 2:34
subramanyeswari9-May-07 2:34 
GeneralRe: C2065 Error Pin
toxcct9-May-07 2:39
toxcct9-May-07 2:39 
Questionhow to return const char* in C Pin
sandeepkavade7-May-07 1:56
sandeepkavade7-May-07 1:56 
AnswerRe: how to return const char* in C Pin
toxcct7-May-07 2:00
toxcct7-May-07 2:00 
AnswerRe: how to return const char* in C Pin
Hans Dietrich7-May-07 3:19
mentorHans Dietrich7-May-07 3:19 
You need to specify C linkage instead of C++ linkage. To specify C linkage, use extern "C" for function declarations:
extern "C" const char* __declspec(dllimport) myfunction(par1, par2);
Also, note that the dllimport should be dllexport if you're compiling the DLL project.

To check what is being generated, use the dumpbin command-line utility: dumpbin /exports mydll.dll. You can also use this on .lib file.

Be sure you are pointing to correct lib/dll in your project - otherwise you will waste a lot of time trying to figure out why changes are not showing up.

Best wishes,
Hans
QuestionC++ Ftp Api on Unix [modified] Pin
MarcoNedwig7-May-07 1:43
MarcoNedwig7-May-07 1:43 
AnswerRe: C++ Ftp Api on Unix Pin
Hans Dietrich7-May-07 1:47
mentorHans Dietrich7-May-07 1:47 
AnswerRe: C++ Ftp Api on Unix Pin
markkuk7-May-07 3:27
markkuk7-May-07 3:27 
QuestionRe: C++ Ftp Api on Unix Pin
David Crow7-May-07 3:36
David Crow7-May-07 3:36 
AnswerRe: C++ Ftp Api on Unix Pin
MarcoNedwig7-May-07 3:38
MarcoNedwig7-May-07 3:38 
QuestionRe: C++ Ftp Api on Unix Pin
David Crow7-May-07 3:52
David Crow7-May-07 3:52 
AnswerRe: C++ Ftp Api on Unix Pin
MarcoNedwig7-May-07 3:54
MarcoNedwig7-May-07 3:54 
QuestionHow to change the Text Color of a Group Box?? Pin
narayanagvs7-May-07 1:43
narayanagvs7-May-07 1:43 
AnswerRe: How to change the Text Color of a Group Box?? Pin
Hans Dietrich7-May-07 1:58
mentorHans Dietrich7-May-07 1:58 
AnswerRe: How to change the Text Color of a Group Box?? Pin
Mark Salsbery7-May-07 5:06
Mark Salsbery7-May-07 5:06 
Questioncan i debug multi threading application? Pin
amitmistry_petlad 7-May-07 1:39
amitmistry_petlad 7-May-07 1:39 
AnswerRe: can i debug multi threading application? Pin
CPallini7-May-07 1:42
mveCPallini7-May-07 1:42 
GeneralRe: can i debug multi threading application? Pin
amitmistry_petlad 7-May-07 2:22
amitmistry_petlad 7-May-07 2:22 
GeneralRe: can i debug multi threading application? Pin
toxcct7-May-07 2:25
toxcct7-May-07 2:25 
GeneralRe: can i debug multi threading application? [modified] Pin
amitmistry_petlad 7-May-07 2:50
amitmistry_petlad 7-May-07 2:50 
GeneralRe: can i debug multi threading application? Pin
toxcct7-May-07 2:59
toxcct7-May-07 2:59 
GeneralRe: can i debug multi threading application? Pin
amitmistry_petlad 7-May-07 3:23
amitmistry_petlad 7-May-07 3:23 

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.