Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Templates Pin
Stan the man10-Jan-03 2:57
Stan the man10-Jan-03 2:57 
GeneralRe: Templates Pin
Michael Dunn10-Jan-03 7:08
sitebuilderMichael Dunn10-Jan-03 7:08 
GeneralRe: Templates Pin
Dave Bryant12-Jan-03 7:31
Dave Bryant12-Jan-03 7:31 
GeneralRe: Templates Pin
Vicar29-Jan-03 19:24
Vicar29-Jan-03 19:24 
QuestionCheck visibility of a child control? Pin
Moak9-Jan-03 15:32
Moak9-Jan-03 15:32 
AnswerRe: Check visibility of a child control? Pin
Moak10-Jan-03 6:43
Moak10-Jan-03 6:43 
GeneralI am in DLL Hell.. :( Pin
VanHlebar9-Jan-03 14:43
VanHlebar9-Jan-03 14:43 
GeneralRe: I am in DLL Hell.. :( Pin
Rick York9-Jan-03 15:15
mveRick York9-Jan-03 15:15 
The problem is you are exporting a C++ function and its name to the outside world is not SndMessage. C++ mangles the name of functions so that the arguments types are included. If you have successfully built your DLL you can find out exactly what the exported name is by typing "dumpbin /EXPORTS TestDll.dll" Dumpbin is one of the VC++ tools.

One work around is to export a straight C function that exports a pointer to the string that is passed via a LONG and you cast it to a string pointer when you use it. This can be wrapped in a local C++ function so don't see the messy details.

Note - in your current implementation, I believe that strOutMesage will be destroyed when SndMessage returns since it is then out of scope.



The Ten Commandments For C Programmers
GeneralRe: I am in DLL Hell.. :( Pin
VanHlebar9-Jan-03 16:43
VanHlebar9-Jan-03 16:43 
GeneralRe: I am in DLL Hell.. :( Pin
Chris Richardson9-Jan-03 17:57
Chris Richardson9-Jan-03 17:57 
GeneralRe: I am in DLL Hell.. :( Pin
Rickard Andersson209-Jan-03 21:45
Rickard Andersson209-Jan-03 21:45 
GeneralRe: I am in DLL Hell.. :( Pin
Rick York10-Jan-03 5:41
mveRick York10-Jan-03 5:41 
QuestionWhat is OLE object? Pin
E_LISE_LI9-Jan-03 14:10
E_LISE_LI9-Jan-03 14:10 
AnswerRe: What is OLE object? Pin
Michael Dunn9-Jan-03 14:30
sitebuilderMichael Dunn9-Jan-03 14:30 
Generalrepost Numbers won't display in HEX when using string class Pin
Perseus9-Jan-03 13:07
Perseus9-Jan-03 13:07 
GeneralRe: repost Numbers won't display in HEX when using string class Pin
Michael Dunn9-Jan-03 14:32
sitebuilderMichael Dunn9-Jan-03 14:32 
GeneralRe: repost Numbers won't display in HEX when using string class Pin
Perseus9-Jan-03 14:41
Perseus9-Jan-03 14:41 
GeneralResource for resources Pin
Aaron Schaefer9-Jan-03 12:09
Aaron Schaefer9-Jan-03 12:09 
GeneralRe: Resource for resources Pin
Taka Muraoka9-Jan-03 12:34
Taka Muraoka9-Jan-03 12:34 
GeneralRe: Resource for resources Pin
Aaron Schaefer9-Jan-03 12:35
Aaron Schaefer9-Jan-03 12:35 
GeneralSplash Screen, title and icon Pin
MemLeak9-Jan-03 10:59
MemLeak9-Jan-03 10:59 
GeneralRe: Splash Screen, title and icon Pin
super9-Jan-03 19:12
professionalsuper9-Jan-03 19:12 
QuestionMemory problems? or not? Pin
jimNLX9-Jan-03 10:30
jimNLX9-Jan-03 10:30 
AnswerRe: Memory problems? or not? Pin
Alvaro Mendez9-Jan-03 10:59
Alvaro Mendez9-Jan-03 10:59 
GeneralCall an executable Pin
sumod9-Jan-03 9:30
sumod9-Jan-03 9: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.