Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PostMessage() Pin
Adi Narayana7-Feb-05 1:15
Adi Narayana7-Feb-05 1:15 
QuestionHow to return an object pointer from an ActiveX control Pin
7-Feb-05 0:03
suss7-Feb-05 0:03 
AnswerRe: How to return an object pointer from an ActiveX control Pin
Member 341377-Feb-05 4:56
Member 341377-Feb-05 4:56 
AnswerRe: How to return an object pointer from an ActiveX control Pin
Sheng Jiang 蒋晟7-Feb-05 14:18
Sheng Jiang 蒋晟7-Feb-05 14:18 
QuestionHow to display picture while my programm is running Pin
bilas6-Feb-05 23:37
bilas6-Feb-05 23:37 
GeneralHelp with global variables Pin
Muad-Dib6-Feb-05 23:31
Muad-Dib6-Feb-05 23:31 
GeneralRe: Help with global variables Pin
bilas6-Feb-05 23:44
bilas6-Feb-05 23:44 
GeneralRe: Help with global variables Pin
Antony M Kancidrowski7-Feb-05 1:38
Antony M Kancidrowski7-Feb-05 1:38 
Hold the variables in MyApp.h private section, also add public accessor functions for the variables.

I suggest you use the variables through the accessors within MyApp class in order to maintain consistency with accessing through other classes.

Within the MyAppDialog you can access these functions like so:
MyApp* pApp = reinterpret_cast<MyApp*>(AfxGetApp());
ASSERT(pApp != NULL);

var = pApp->GetVariable();

where

GetVariable is the accessor function that you want.

var is of the type that GetVariable returns.

Ant.

I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return!
- David Walliams (Little Britain)

GeneralRe: Help with global variables Pin
Muad-Dib7-Feb-05 2:36
Muad-Dib7-Feb-05 2:36 
GeneralRe: Help with global variables Pin
Muad-Dib7-Feb-05 11:53
Muad-Dib7-Feb-05 11:53 
GeneralRe: Help with global variables Pin
Antony M Kancidrowski7-Feb-05 11:58
Antony M Kancidrowski7-Feb-05 11:58 
GeneralRe: Help with global variables Pin
Muad-Dib7-Feb-05 20:43
Muad-Dib7-Feb-05 20:43 
GeneralRe: Help with global variables Pin
Antony M Kancidrowski8-Feb-05 10:45
Antony M Kancidrowski8-Feb-05 10:45 
Generalinformation on pixel of a picture Pin
petit sorcier6-Feb-05 23:23
petit sorcier6-Feb-05 23:23 
GeneralRe: information on pixel of a picture Pin
ThatsAlok6-Feb-05 23:39
ThatsAlok6-Feb-05 23:39 
GeneralError in put_text Pin
cj_rahul6-Feb-05 23:22
cj_rahul6-Feb-05 23:22 
GeneralRe: Error in put_text Pin
Mike Dimmick6-Feb-05 23:29
Mike Dimmick6-Feb-05 23:29 
GeneralDifferent fonts in CTreeView Pin
bilas6-Feb-05 23:16
bilas6-Feb-05 23:16 
GeneralRe: Different fonts in CTreeView Pin
Mike Dimmick6-Feb-05 23:23
Mike Dimmick6-Feb-05 23:23 
GeneralRe: Different fonts in CTreeView Pin
bilas6-Feb-05 23:33
bilas6-Feb-05 23:33 
GeneralRe: Different fonts in CTreeView Pin
bilas7-Feb-05 0:40
bilas7-Feb-05 0:40 
GeneralCreateWindow fails Pin
Member 14932146-Feb-05 23:01
Member 14932146-Feb-05 23:01 
GeneralRe: CreateWindow fails Pin
ThatsAlok6-Feb-05 23:19
ThatsAlok6-Feb-05 23:19 
GeneralRe: CreateWindow fails Pin
Member 14932147-Feb-05 0:35
Member 14932147-Feb-05 0:35 
GeneralUpdateCommandUI problem Pin
Ro_land6-Feb-05 22:38
Ro_land6-Feb-05 22:38 

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.