Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Need to insert text? Pin
David Crow27-Aug-04 9:33
David Crow27-Aug-04 9:33 
GeneralRe: Need to insert text? Pin
Larsson27-Aug-04 10:03
Larsson27-Aug-04 10:03 
GeneralRe: Need to insert text? Pin
David Crow27-Aug-04 10:38
David Crow27-Aug-04 10:38 
QuestionInsert text to file? Pin
Larsson27-Aug-04 8:44
Larsson27-Aug-04 8:44 
AnswerRe: Insert text to file? Pin
darkbyte27-Aug-04 13:58
darkbyte27-Aug-04 13:58 
GeneralDoc/View and permanent/temporary handle maps Pin
herbert_chow27-Aug-04 8:24
herbert_chow27-Aug-04 8:24 
GeneralRe: Doc/View and permanent/temporary handle maps Pin
Neville Franks27-Aug-04 11:34
Neville Franks27-Aug-04 11:34 
Generalextern "C" in VisualStudio Pin
Marcello27-Aug-04 5:58
Marcello27-Aug-04 5:58 
Hello,

I am using the tecnique http://www.lambdasoft.dk/comet/doc/cometautoexp.html
in order to provides custom formatting for variables in the VisualStudio debugger.
I can tell that it works very well.

What puzzles me is this.

In the code I export the function from the DLL in this way:

extern "C" {<br />
	__declspec(dllexport) HRESULT WINAPI VCF_DateTimeEvaluate( DWORD dwAddress, DEBUGHELPER *pHelper, int nBase, BOOL bUniStrings, char *pResult, size_t maxlen, DWORD reserved );<br />
}<br />

But then:
dumpbin /exports AutoExp.dll
shows
_VCF_DateTimeEvaluate@28
instead than simply
VCF_DateTimeEvaluate
both by compiling with vc6 and vc70.

Other people swear that I should simply get
VCF_DateTimeEvaluate
as long as I use: extern "C" { ... }

Please note that extern "C" does something anyway, because without it I would get the mangled name:
?VCF_DateTimeEvaluate@@YGJKPAUtagDEBUGHELPER@@HHPADIK@Z


If you have the patience to answer to another related question, here it is !
If I do use a definition file, it works with vc6 by just including it in the project, as I get: VCF_DateTimeEvaluate
But with vc70 it doesn't work. Why ? What should I do different ?
GeneralRe: extern &quot;C&quot; in VisualStudio Pin
darkbyte27-Aug-04 13:38
darkbyte27-Aug-04 13:38 
GeneralRe: extern "C" in VisualStudio Pin
Marcello27-Aug-04 14:32
Marcello27-Aug-04 14:32 
GeneralRe: extern &quot;C&quot; in VisualStudio Pin
darkbyte27-Aug-04 15:49
darkbyte27-Aug-04 15:49 
GeneralRe: extern "C" in VisualStudio Pin
Marcello28-Aug-04 18:59
Marcello28-Aug-04 18:59 
GeneralRe: extern &quot;C&quot; in VisualStudio Pin
darkbyte27-Aug-04 16:03
darkbyte27-Aug-04 16:03 
GeneralRe: extern &quot;C&quot; in VisualStudio Pin
Marcello28-Aug-04 12:32
Marcello28-Aug-04 12:32 
GeneralRe: extern &quot;C&quot; in VisualStudio Pin
Marcello28-Aug-04 19:00
Marcello28-Aug-04 19:00 
GeneralRe: extern "C" in VisualStudio Pin
Marcello28-Aug-04 19:07
Marcello28-Aug-04 19:07 
Generalsocket error WSAEFAULT Pin
ns27-Aug-04 4:54
ns27-Aug-04 4:54 
QuestionSDI-App in regular DLL with its own message queue? Pin
Dawn_x27-Aug-04 4:27
Dawn_x27-Aug-04 4:27 
Generalfind a string in a large sequence. Pin
Maximilien27-Aug-04 4:12
Maximilien27-Aug-04 4:12 
GeneralRe: find a string in a large sequence. Pin
David Crow27-Aug-04 5:40
David Crow27-Aug-04 5:40 
GeneralRe: find a string in a large sequence. Pin
Maximilien27-Aug-04 6:07
Maximilien27-Aug-04 6:07 
GeneralRe: find a string in a large sequence. Pin
Blake Miller27-Aug-04 7:13
Blake Miller27-Aug-04 7:13 
GeneralMultiple Inheritance question Pin
InheritThis!27-Aug-04 3:27
sussInheritThis!27-Aug-04 3:27 
GeneralRe: Multiple Inheritance question Pin
thowra27-Aug-04 3:41
thowra27-Aug-04 3:41 
GeneralRe: Multiple Inheritance question Pin
InheritThis!27-Aug-04 3:54
sussInheritThis!27-Aug-04 3:54 

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.