Click here to Skip to main content
16,011,534 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUpdateresource sample needed Pin
includeh1010-Dec-04 18:02
includeh1010-Dec-04 18:02 
GeneralRe: Updateresource sample needed Pin
John R. Shaw10-Dec-04 18:51
John R. Shaw10-Dec-04 18:51 
GeneralRe: Updateresource sample needed Pin
Gary R. Wheeler11-Dec-04 2:21
Gary R. Wheeler11-Dec-04 2:21 
QuestionMenu not loading???? Pin
ashsri10-Dec-04 16:13
ashsri10-Dec-04 16:13 
AnswerRe: Menu not loading???? Pin
John R. Shaw10-Dec-04 21:19
John R. Shaw10-Dec-04 21:19 
GeneralRe: Menu not loading???? Pin
ashsri11-Dec-04 4:47
ashsri11-Dec-04 4:47 
QuestionDLL: GetProcAddress() always returns NULL?? Pin
registering10-Dec-04 12:03
registering10-Dec-04 12:03 
AnswerRe: DLL: GetProcAddress() always returns NULL?? Pin
Mike Dimmick10-Dec-04 12:23
Mike Dimmick10-Dec-04 12:23 
'Depends' has a 'C++' button in the toolbar. Make sure it's not pressed. A sure sign that the name is in fact mangled is if the full signature appears in the list, i.e. int fnTestDLL(void).

Since you haven't wrapped the testdll.h contents with an extern "C" block, I suspect that the names are in fact mangled. You can perform an additional check using dumpbin /exports, which doesn't perform any translation.

You can fix this either by prefixing the 'flat' exports with extern "C", or by using a module-definition file[^]. The latter is useful if you want to define a different external name from the name in the code, or if you want to specify the ordinal.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: DLL: GetProcAddress() always returns NULL?? Pin
registering10-Dec-04 12:54
registering10-Dec-04 12:54 
GeneralRe: DLL: GetProcAddress() always returns NULL?? Pin
Gary R. Wheeler11-Dec-04 2:23
Gary R. Wheeler11-Dec-04 2:23 
AnswerRe: DLL: GetProcAddress() always returns NULL?? Pin
John R. Shaw10-Dec-04 21:46
John R. Shaw10-Dec-04 21:46 
GeneralRe: DLL: GetProcAddress() always returns NULL?? Pin
registering11-Dec-04 4:37
registering11-Dec-04 4:37 
QuestionWhat is the include needed? Pin
Anonymous10-Dec-04 9:43
Anonymous10-Dec-04 9:43 
AnswerRe: What is the include needed? Pin
John M. Drescher10-Dec-04 9:53
John M. Drescher10-Dec-04 9:53 
AnswerRe: What is the include needed? Pin
Andy Hunter10-Dec-04 10:07
Andy Hunter10-Dec-04 10:07 
GeneralRe: What is the include needed? Pin
Anonymous10-Dec-04 10:09
Anonymous10-Dec-04 10:09 
GeneralEvents - How Fast Pin
Grahamfff10-Dec-04 8:47
Grahamfff10-Dec-04 8:47 
GeneralRe: Events - How Fast Pin
John M. Drescher10-Dec-04 10:39
John M. Drescher10-Dec-04 10:39 
GeneralRe: Events - How Fast Pin
Antti Keskinen10-Dec-04 10:39
Antti Keskinen10-Dec-04 10:39 
GeneralRe: Events - How Fast Pin
Mike Dimmick10-Dec-04 12:33
Mike Dimmick10-Dec-04 12:33 
GeneralOnRButtonUp Pin
greba10-Dec-04 8:33
greba10-Dec-04 8:33 
GeneralRe: OnRButtonUp Pin
greba10-Dec-04 9:13
greba10-Dec-04 9:13 
GeneralRe: OnRButtonUp Pin
G. Steudtel10-Dec-04 9:16
G. Steudtel10-Dec-04 9:16 
Generalregular experssion in C++ Pin
pnpfriend10-Dec-04 7:47
pnpfriend10-Dec-04 7:47 
GeneralRe: regular experssion in C++ Pin
John M. Drescher10-Dec-04 8:03
John M. Drescher10-Dec-04 8:03 

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.