Click here to Skip to main content
16,009,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Those who know how to use raw socket to do a sniff , can help me ? Pin
fyr00000022-Apr-06 3:34
fyr00000022-Apr-06 3:34 
GeneralRe: Those who know how to use raw socket to do a sniff , can help me ? Pin
Sandeep. Vaidya25-Apr-06 2:31
Sandeep. Vaidya25-Apr-06 2:31 
AnswerRe: Those who know how to use raw socket to do a sniff , can help me ? Pin
fyr00000025-Apr-06 15:54
fyr00000025-Apr-06 15:54 
QuestionGlobals In MFC App Wizard Pin
jinbabaj22-Apr-06 3:12
jinbabaj22-Apr-06 3:12 
AnswerRe: Globals In MFC App Wizard Pin
includeh1022-Apr-06 4:58
includeh1022-Apr-06 4:58 
AnswerRe: Globals In MFC App Wizard Pin
Michael Dunn22-Apr-06 9:10
sitebuilderMichael Dunn22-Apr-06 9:10 
AnswerRe: Globals In MFC App Wizard Pin
Aqueel22-Apr-06 9:55
Aqueel22-Apr-06 9:55 
AnswerRe: Globals In MFC App Wizard Pin
John R. Shaw22-Apr-06 18:22
John R. Shaw22-Apr-06 18:22 
Either place the funcion/variable in the main code file or in its own file ( like 'Globals.cpp'). Then either place the declaration (prototypes) in the 'stdafx.h' file or include a header for the 'Globals.cpp' file in it.

If you are dealing with a single variable, just declare it in the main .cpp file and the declare it as external in the 'stdafx.h' file.

If you do not want to make it truely global (everyone knows about it), then declare it in one of the files that needs it and declare it as external in any other file that needs access to it.

INTP
Every thing is relative...
QuestionCan MSVS 6 leverage .net (more precisely C# forms)? Pin
-e22-Apr-06 2:30
-e22-Apr-06 2:30 
AnswerRe: Can MSVS 6 leverage .net (more precisely C# forms)? Pin
toxcct22-Apr-06 7:07
toxcct22-Apr-06 7:07 
GeneralRe: Can MSVS 6 leverage .net (more precisely C# forms)? Pin
-e22-Apr-06 12:42
-e22-Apr-06 12:42 
AnswerRe: Can MSVS 6 leverage .net (more precisely C# forms)? Pin
Waldermort22-Apr-06 8:17
Waldermort22-Apr-06 8:17 
GeneralRe: Can MSVS 6 leverage .net (more precisely C# forms)? Pin
-e22-Apr-06 13:02
-e22-Apr-06 13:02 
AnswerRe: Can MSVS 6 leverage .net (more precisely C# forms)? Pin
Michael P Butler23-Apr-06 7:57
Michael P Butler23-Apr-06 7:57 
QuestionScroll Window without document/view Pin
mwybranczyk22-Apr-06 1:34
mwybranczyk22-Apr-06 1:34 
AnswerRe: Scroll Window without document/view Pin
includeh1022-Apr-06 4:08
includeh1022-Apr-06 4:08 
QuestionListbox control Pin
srija22-Apr-06 1:26
srija22-Apr-06 1:26 
AnswerRe: Listbox control Pin
Gary R. Wheeler22-Apr-06 2:11
Gary R. Wheeler22-Apr-06 2:11 
GeneralRe: Listbox control Pin
srija22-Apr-06 5:18
srija22-Apr-06 5:18 
GeneralRe: Listbox control Pin
Bram van Kampen22-Apr-06 15:49
Bram van Kampen22-Apr-06 15:49 
GeneralRe: Listbox control Pin
srija23-Apr-06 7:02
srija23-Apr-06 7:02 
Questionreading strings from file - newbie Pin
antonaras_marcou22-Apr-06 1:23
antonaras_marcou22-Apr-06 1:23 
AnswerRe: reading strings from file - newbie Pin
Stephen Hewitt22-Apr-06 1:46
Stephen Hewitt22-Apr-06 1:46 
GeneralRe: reading strings from file - newbie Pin
antonaras_marcou22-Apr-06 2:07
antonaras_marcou22-Apr-06 2:07 
GeneralRe: reading strings from file - newbie Pin
Stephen Hewitt22-Apr-06 2:10
Stephen Hewitt22-Apr-06 2:10 

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.