Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Taskbar Notification Pin
Iain Clarke, Warrior Programmer6-Feb-08 0:00
Iain Clarke, Warrior Programmer6-Feb-08 0:00 
GeneralRe: Taskbar Notification Pin
David Crow6-Feb-08 2:37
David Crow6-Feb-08 2:37 
GeneralDLL function by ordinal Pin
George_George5-Feb-08 20:55
George_George5-Feb-08 20:55 
GeneralRe: DLL function by ordinal Pin
CPallini5-Feb-08 21:05
mveCPallini5-Feb-08 21:05 
GeneralRe: DLL function by ordinal Pin
George_George6-Feb-08 18:42
George_George6-Feb-08 18:42 
GeneralRe: DLL function by ordinal Pin
Dexterus6-Feb-08 0:45
Dexterus6-Feb-08 0:45 
GeneralRe: DLL function by ordinal Pin
George_George6-Feb-08 18:44
George_George6-Feb-08 18:44 
Generalextern "C" Pin
George_George5-Feb-08 20:46
George_George5-Feb-08 20:46 
Hello everyone,


Just to confirm what is the most correct way beyond a just working function.

1.

We need to add extern "C" to both variable/function definition/declaration? Or only need to add to the variable/function declaration?

2.

How about extern? Declaration only or both declaration and definition are required?

BTW: previously, I only add to declaration, but after reading more and more code which add to both declaration and definition, I come to here to ask this question.


thanks in advance,
George
GeneralRe: extern "C" Pin
CPallini5-Feb-08 22:53
mveCPallini5-Feb-08 22:53 
JokeRe: extern "C" Pin
Rajesh R Subramanian5-Feb-08 23:34
professionalRajesh R Subramanian5-Feb-08 23:34 
GeneralRe: extern "C" Pin
CPallini5-Feb-08 23:36
mveCPallini5-Feb-08 23:36 
GeneralRe: extern "C" Pin
Rajesh R Subramanian5-Feb-08 23:45
professionalRajesh R Subramanian5-Feb-08 23:45 
GeneralRe: extern "C" Pin
CPallini5-Feb-08 23:55
mveCPallini5-Feb-08 23:55 
GeneralRe: extern "C" Pin
Rajesh R Subramanian5-Feb-08 23:57
professionalRajesh R Subramanian5-Feb-08 23:57 
GeneralRe: extern "C" Pin
George_George6-Feb-08 18:20
George_George6-Feb-08 18:20 
GeneralRe: extern "C" Pin
CPallini6-Feb-08 20:50
mveCPallini6-Feb-08 20:50 
GeneralRe: extern "C" Pin
George_George7-Feb-08 3:29
George_George7-Feb-08 3:29 
GeneralRe: extern "C" Pin
CPallini7-Feb-08 3:53
mveCPallini7-Feb-08 3:53 
GeneralRe: extern "C" Pin
George_George7-Feb-08 4:08
George_George7-Feb-08 4:08 
GeneralHttp download resume support Pin
Sudhir Mangla5-Feb-08 18:47
professionalSudhir Mangla5-Feb-08 18:47 
GeneralRe: Http download resume support Pin
Hamid_RT5-Feb-08 19:42
Hamid_RT5-Feb-08 19:42 
GeneralRe: Http download resume support Pin
Sudhir Mangla5-Feb-08 19:46
professionalSudhir Mangla5-Feb-08 19:46 
GeneralRe: Http download resume support Pin
David Crow6-Feb-08 2:40
David Crow6-Feb-08 2:40 
GeneralQuery on system() API on VC 6.0 Pin
Member 38696825-Feb-08 18:33
Member 38696825-Feb-08 18:33 
GeneralRe: Query on system() API on VC 6.0 Pin
hxhl955-Feb-08 18:37
hxhl955-Feb-08 18:37 

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.