Click here to Skip to main content
16,004,678 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding Members to a Base Class Pin
Steve Echols1-Jul-07 17:32
Steve Echols1-Jul-07 17:32 
GeneralRe: Adding Members to a Base Class Pin
Mark Salsbery2-Jul-07 6:59
Mark Salsbery2-Jul-07 6:59 
GeneralRe: Adding Members to a Base Class Pin
Mark Salsbery2-Jul-07 7:01
Mark Salsbery2-Jul-07 7:01 
GeneralRe: Adding Members to a Base Class Pin
ForNow2-Jul-07 12:13
ForNow2-Jul-07 12:13 
QuestionURLDownloadToFile dont work in worker thread [modified] Pin
awah1-Jul-07 5:19
awah1-Jul-07 5:19 
AnswerRe: URLDownloadToFile dont work in worker thread Pin
Mark Salsbery1-Jul-07 9:00
Mark Salsbery1-Jul-07 9:00 
Questionproblem in USB Pen Drive detection Pin
cyberanee1-Jul-07 3:42
cyberanee1-Jul-07 3:42 
QuestionWhere to declare global variables? Pin
KaKa'1-Jul-07 1:48
KaKa'1-Jul-07 1:48 
I have a C++ project with multiple .h and .cpp files and with a .cpp file containing the int main() function.

Where do I declare global variables such that they can be accessed by the methods in the various .cpp files?

I declared the variable before the main() function but there is an "undeclared variable" error.

I tried creating a .h file to store the global variable and added the line: #include "globals.h" in the necessary .h files but there were all sorts of link errors.
AnswerRe: Where to declare global variables? Pin
john56321-Jul-07 3:45
john56321-Jul-07 3:45 
AnswerRe: Where to declare global variables? Pin
Arman S.1-Jul-07 4:33
Arman S.1-Jul-07 4:33 
AnswerRe: Where to declare global variables? Pin
Michael Dunn1-Jul-07 12:22
sitebuilderMichael Dunn1-Jul-07 12:22 
QuestionDLL load prevention Pin
Perspx1-Jul-07 1:13
Perspx1-Jul-07 1:13 
QuestionRe: DLL load prevention Pin
David Crow2-Jul-07 4:46
David Crow2-Jul-07 4:46 
Questionclosing application Pin
john56321-Jul-07 0:24
john56321-Jul-07 0:24 
AnswerRe: closing application Pin
Arman S.1-Jul-07 4:26
Arman S.1-Jul-07 4:26 
AnswerRe: closing application Pin
Stephen Hewitt1-Jul-07 15:10
Stephen Hewitt1-Jul-07 15:10 
Questioncall webbrowser.Navigate within a thread via post message to UI thread Pin
awah30-Jun-07 21:12
awah30-Jun-07 21:12 
QuestionScenarios for Deployment MFC dlg based application Pin
ndristephane30-Jun-07 20:59
ndristephane30-Jun-07 20:59 
AnswerRe: Scenarios for Deployment MFC dlg based application Pin
Rajesh R Subramanian30-Jun-07 21:22
professionalRajesh R Subramanian30-Jun-07 21:22 
AnswerRe: Scenarios for Deployment MFC dlg based application Pin
Mark Salsbery1-Jul-07 9:15
Mark Salsbery1-Jul-07 9:15 
Questionmanifest file Pin
saisp30-Jun-07 20:56
saisp30-Jun-07 20:56 
AnswerRe: manifest file Pin
Paresh Chitte1-Jul-07 18:28
Paresh Chitte1-Jul-07 18:28 
GeneralRe: manifest file Pin
tom groezer4-Jul-07 8:59
tom groezer4-Jul-07 8:59 
GeneralRe: manifest file Pin
Paresh Chitte5-Jul-07 18:40
Paresh Chitte5-Jul-07 18:40 
QuestionCwebbrowser2 , cannot find the internet path Pin
awah30-Jun-07 17:31
awah30-Jun-07 17:31 

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.