Click here to Skip to main content
16,017,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 15:01
Achim Klein15-Aug-05 15:01 
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 
Hello,

MFC embeds the WinMain function so you don't have to mess with the dirty WIN32 API.

I don't know what kind of data you need to access from what place, but it seems to me that you have trouble with encapsulating data.

It is not a good idea have public member variables in a class. This way, you can never safely assume what value the variable has or when it is safe to write a value to it.

Anyway, if you can explain us from which class you want to access what data in what class, and provide (example) code, we can do more for you.

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
GeneralRe: Global objects in MFC Pin
TOlivier15-Aug-05 11:26
TOlivier15-Aug-05 11:26 
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 

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.