Click here to Skip to main content
15,922,145 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSimple problem with a list! Pin
Michael1016-Feb-08 1:08
Michael1016-Feb-08 1:08 
GeneralRe: Simple problem with a list! Pin
santhoshv846-Feb-08 1:16
santhoshv846-Feb-08 1:16 
GeneralRe: Simple problem with a list! Pin
Michael1016-Feb-08 11:38
Michael1016-Feb-08 11:38 
Questionerror in filter design coding Pin
ashwiny6-Feb-08 0:39
ashwiny6-Feb-08 0:39 
GeneralRe: error in filter design coding Pin
Rajkumar R6-Feb-08 0:47
Rajkumar R6-Feb-08 0:47 
GeneralRe: error in filter design coding Pin
ashwiny6-Feb-08 1:07
ashwiny6-Feb-08 1:07 
GeneralRe: error in filter design coding Pin
Rajkumar R6-Feb-08 1:22
Rajkumar R6-Feb-08 1:22 
GeneralRe: error in filter design coding Pin
ashwiny6-Feb-08 23:50
ashwiny6-Feb-08 23:50 
GeneralCalling thru' Icons - Urgent Pin
Gita.Bairavi6-Feb-08 0:16
Gita.Bairavi6-Feb-08 0:16 
QuestionRe: Calling thru' Icons - Urgent Pin
Rajesh R Subramanian6-Feb-08 0:30
professionalRajesh R Subramanian6-Feb-08 0:30 
GeneralRe: Calling thru' Icons - Urgent Pin
Gita.Bairavi6-Feb-08 1:01
Gita.Bairavi6-Feb-08 1:01 
QuestionRe: Calling thru' Icons - Urgent Pin
Rajesh R Subramanian6-Feb-08 1:31
professionalRajesh R Subramanian6-Feb-08 1:31 
GeneralRe: Calling thru' Icons - Urgent Pin
Anandi.VC6-Feb-08 0:51
Anandi.VC6-Feb-08 0:51 
GeneralRe: Calling thru' Icons - Urgent Pin
Maximilien6-Feb-08 0:59
Maximilien6-Feb-08 0:59 
GeneralCompilation Errors Pin
Anandi.VC5-Feb-08 23:50
Anandi.VC5-Feb-08 23:50 
QuestionRe: Compilation Errors Pin
CPallini6-Feb-08 0:03
mveCPallini6-Feb-08 0:03 
GeneralTaskbar Notification Pin
vinayvishal5-Feb-08 22:14
vinayvishal5-Feb-08 22:14 
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

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.