Click here to Skip to main content
15,909,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Global objects in MFC Pin
TOlivier16-Aug-05 4:24
TOlivier16-Aug-05 4:24 
GeneralRe: Global objects in MFC Pin
Stephan Pilz15-Aug-05 3:51
Stephan Pilz15-Aug-05 3:51 
GeneralRe: Global objects in MFC Pin
TOlivier15-Aug-05 4:17
TOlivier15-Aug-05 4:17 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 4:45
Achim Klein15-Aug-05 4:45 
GeneralRe: Global objects in MFC Pin
TOlivier15-Aug-05 11:15
TOlivier15-Aug-05 11:15 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 12:07
Achim Klein15-Aug-05 12:07 
GeneralRe: Global objects in MFC Pin
Bob Stanneveld15-Aug-05 6:05
Bob Stanneveld15-Aug-05 6:05 
GeneralRe: Global objects in MFC Pin
TOlivier15-Aug-05 11:26
TOlivier15-Aug-05 11:26 
I'll try to explain as best I could. I created an SDI app with the wizard. I need to run an infinite loop (until the user closes the app) to repeatedly call various classes/objects. My first problem is I don't know where to put this loop in MFC, with old c++ I usually put somewhere in main() or such. In my app I have for example an intersection class (represents a simulated traffic intersection) which have various functions and variables. When u click file->new in my app I open up wizard-like dialogs which ask u about how u want the simulation etc. During this time I need to store these values and then later when the simulation begin use these values again. Thus in this wizard-like MFC-dialog class (which handles all the controls) I need to somehow store the enetered/selected values using that intersection class/or object of it, but must also retrieve these values later on from say that infinite loop.

Sorry for all the text.
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 13:52
Achim Klein15-Aug-05 13:52 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 13:56
Achim Klein15-Aug-05 13:56 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 14:36
Achim Klein15-Aug-05 14:36 
GeneralRe: Global objects in MFC Pin
TOlivier16-Aug-05 4:31
TOlivier16-Aug-05 4:31 
GeneralRe: Global objects in MFC Pin
Emilio Garavaglia15-Aug-05 22:14
Emilio Garavaglia15-Aug-05 22:14 
GeneralPlay Audio CD via Soundcard Pin
Storm-blade15-Aug-05 3:10
professionalStorm-blade15-Aug-05 3:10 
GeneralRe: Play Audio CD via Soundcard Pin
M.Mehrdad.M15-Aug-05 3:51
M.Mehrdad.M15-Aug-05 3:51 
GeneralRe: Play Audio CD via Soundcard Pin
Storm-blade15-Aug-05 4:35
professionalStorm-blade15-Aug-05 4:35 
GeneralProblem with "Create a FrameWnd inside a thread" Pin
Stephan Pilz15-Aug-05 2:41
Stephan Pilz15-Aug-05 2:41 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
khan++15-Aug-05 2:47
khan++15-Aug-05 2:47 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Stephan Pilz15-Aug-05 3:44
Stephan Pilz15-Aug-05 3:44 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
HumanOsc15-Aug-05 4:51
HumanOsc15-Aug-05 4:51 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Stephan Pilz15-Aug-05 20:08
Stephan Pilz15-Aug-05 20:08 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Stephan Pilz15-Aug-05 20:52
Stephan Pilz15-Aug-05 20:52 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Sheng Jiang 蒋晟15-Aug-05 15:49
Sheng Jiang 蒋晟15-Aug-05 15:49 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Stephan Pilz15-Aug-05 20:14
Stephan Pilz15-Aug-05 20:14 
GeneralRe: Problem with "Create a FrameWnd inside a thread" Pin
Sheng Jiang 蒋晟15-Aug-05 20:20
Sheng Jiang 蒋晟15-Aug-05 20:20 

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.