Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange initialization problem Pin
Stephen Hewitt23-Jan-07 15:51
Stephen Hewitt23-Jan-07 15:51 
GeneralRe: Strange initialization problem Pin
Waldermort23-Jan-07 21:50
Waldermort23-Jan-07 21:50 
GeneralRe: Strange initialization problem Pin
Stephen Hewitt24-Jan-07 11:11
Stephen Hewitt24-Jan-07 11:11 
Questionwinform treeview customisation Pin
Yannnomad23-Jan-07 11:38
Yannnomad23-Jan-07 11:38 
QuestionGetProcAddress, I'm confused Pin
Anders Molin23-Jan-07 11:19
professionalAnders Molin23-Jan-07 11:19 
AnswerRe: GetProcAddress, I'm confused Pin
Stephen Hewitt23-Jan-07 11:35
Stephen Hewitt23-Jan-07 11:35 
GeneralRe: GetProcAddress, I'm confused Pin
Anders Molin23-Jan-07 11:52
professionalAnders Molin23-Jan-07 11:52 
GeneralRe: GetProcAddress, I'm confused Pin
Cedric Moonen23-Jan-07 20:17
Cedric Moonen23-Jan-07 20:17 
To complement what Stephen said: in C++ you have the ability to overload a function (that is, provide the same name but different arguments type or a different number of argument). Thus, in that case, a function is identified not only by its name but also by its parameters.

In C, function overloading doesn't exist thus functions are identified only by their name.
This mechanism is used by the linker to identify the different functions, in C he will use only the function name and in C++ he will use the function name plus a 'description' of the parameter list.

So, if you declare that the function has a C linkage (by using the keyword extern "C"), you specify that the function use the C linkage, meaning that only its name is used to identify it. But that also mean that you won't be able to overload the function.


Cédric Moonen
Software developer

Charting control [v1.1]

AnswerRe: GetProcAddress, I'm confused Pin
Michael Dunn23-Jan-07 12:17
sitebuilderMichael Dunn23-Jan-07 12:17 
QuestionTexture handling in DirectX Pin
spacecadet1023-Jan-07 11:13
spacecadet1023-Jan-07 11:13 
AnswerRe: Texture handling in DirectX Pin
Waldermort23-Jan-07 13:28
Waldermort23-Jan-07 13:28 
GeneralRe: Texture handling in DirectX Pin
spacecadet1026-Jan-07 2:29
spacecadet1026-Jan-07 2:29 
QuestionTrouble trapping keyboard messages Pin
marcmelillo23-Jan-07 10:33
marcmelillo23-Jan-07 10:33 
QuestionGetActivePane() no longer works in VC++ 2005 Pin
Ted94423-Jan-07 9:12
Ted94423-Jan-07 9:12 
AnswerRe: GetActivePane() no longer works in VC++ 2005 Pin
Mark Salsbery23-Jan-07 9:24
Mark Salsbery23-Jan-07 9:24 
GeneralRe: GetActivePane() no longer works in VC++ 2005 Pin
Ted94423-Jan-07 10:16
Ted94423-Jan-07 10:16 
GeneralRe: GetActivePane() no longer works in VC++ 2005 Pin
Mark Salsbery23-Jan-07 12:00
Mark Salsbery23-Jan-07 12:00 
GeneralRe: GetActivePane() no longer works in VC++ 2005 Pin
Ted94424-Jan-07 3:36
Ted94424-Jan-07 3:36 
GeneralRe: GetActivePane() no longer works in VC++ 2005 Pin
Mark Salsbery24-Jan-07 5:10
Mark Salsbery24-Jan-07 5:10 
QuestionVS 2005 MFC project and the Properties Window ? Pin
Jerry Evans23-Jan-07 8:47
Jerry Evans23-Jan-07 8:47 
AnswerRe: VS 2005 MFC project and the Properties Window ? Pin
BrianCharles23-Jan-07 9:39
BrianCharles23-Jan-07 9:39 
GeneralRe: VS 2005 MFC project and the Properties Window ? Pin
Jerry Evans23-Jan-07 11:43
Jerry Evans23-Jan-07 11:43 
QuestionExporting a class from a DLL Pin
Anders Molin23-Jan-07 8:27
professionalAnders Molin23-Jan-07 8:27 
AnswerRe: Exporting a class from a DLL Pin
Cedric Moonen23-Jan-07 8:33
Cedric Moonen23-Jan-07 8:33 
GeneralRe: Exporting a class from a DLL Pin
Anders Molin23-Jan-07 8:39
professionalAnders Molin23-Jan-07 8:39 

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.