Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGlobal variable prob Pin
benjnp13-Sep-05 16:24
benjnp13-Sep-05 16:24 
AnswerRe: Global variable prob Pin
Weiye Chen13-Sep-05 16:41
Weiye Chen13-Sep-05 16:41 
GeneralRe: Global variable prob Pin
benjnp13-Sep-05 17:59
benjnp13-Sep-05 17:59 
GeneralRe: Global variable prob Pin
HumanOsc13-Sep-05 23:17
HumanOsc13-Sep-05 23:17 
AnswerRe: Global variable prob Pin
Christian Graus13-Sep-05 16:50
protectorChristian Graus13-Sep-05 16:50 
GeneralRe: Global variable prob Pin
Weiye Chen13-Sep-05 16:54
Weiye Chen13-Sep-05 16:54 
GeneralRe: Global variable prob Pin
benjnp13-Sep-05 18:05
benjnp13-Sep-05 18:05 
GeneralRe: Global variable prob Pin
Christian Graus13-Sep-05 18:06
protectorChristian Graus13-Sep-05 18:06 
If you were going to have a global as a static property with get and set methods in a class, then yes, you'd define the struct in the same header file, before you defined the class. Or define it in the CPP and forward declare it, if you choose to store it as a pointer.

If you put it in stdafx, then you define it in stdafx.h, I would have thought.

Christian Graus - Microsoft MVP - C++
GeneralRe: Global variable prob Pin
benjnp13-Sep-05 18:09
benjnp13-Sep-05 18:09 
GeneralRe: Global variable prob Pin
Christian Graus13-Sep-05 18:10
protectorChristian Graus13-Sep-05 18:10 
GeneralRe: Global variable prob Pin
benjnp13-Sep-05 18:24
benjnp13-Sep-05 18:24 
GeneralRe: Global variable prob Pin
benjnp13-Sep-05 18:27
benjnp13-Sep-05 18:27 
GeneralRe: Global variable prob Pin
Weiye Chen13-Sep-05 20:17
Weiye Chen13-Sep-05 20:17 
GeneralRe: Global variable prob Pin
benjnp14-Sep-05 15:36
benjnp14-Sep-05 15:36 
QuestionGreat Trouble.Please, please Help. Even a simple link... Pin
Hamed Musavi13-Sep-05 16:01
Hamed Musavi13-Sep-05 16:01 
AnswerRe: Great Trouble.Please, please Help. Even a simple link... Pin
Christian Graus13-Sep-05 16:17
protectorChristian Graus13-Sep-05 16:17 
GeneralRe: Great Trouble.Please, please Help. Even a simple link... Pin
Hamed Musavi13-Sep-05 16:43
Hamed Musavi13-Sep-05 16:43 
GeneralRe: Great Trouble.Please, please Help. Even a simple link... Pin
Christian Graus13-Sep-05 16:45
protectorChristian Graus13-Sep-05 16:45 
GeneralRe: Great Trouble.Please, please Help. Even a simple link... Pin
Hamed Musavi13-Sep-05 16:58
Hamed Musavi13-Sep-05 16:58 
GeneralRe: Great Trouble.Please, please Help. Even a simple link... Pin
Christian Graus13-Sep-05 17:00
protectorChristian Graus13-Sep-05 17:00 
GeneralRe: Great Trouble.Please, please Help. Even a simple link... Pin
Hamed Musavi13-Sep-05 17:07
Hamed Musavi13-Sep-05 17:07 
AnswerRe: Great Trouble.Please, please Help. Even a simple link... Pin
charlieg13-Sep-05 17:15
charlieg13-Sep-05 17:15 
GeneralRe: Great Trouble.Please, please Help. Even a simple link... Pin
Hamed Musavi14-Sep-05 15:40
Hamed Musavi14-Sep-05 15:40 
QuestionVC 6.0 and Windows CE 5.0 Pin
Demian Panello13-Sep-05 12:52
Demian Panello13-Sep-05 12:52 
AnswerRe: VC 6.0 and Windows CE 5.0 Pin
charlieg13-Sep-05 16:58
charlieg13-Sep-05 16:58 

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.