Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 9:56
Mark Salsbery8-Jun-07 9:56 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 9:58
Immunity188-Jun-07 9:58 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 10:05
Mark Salsbery8-Jun-07 10:05 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 10:18
Immunity188-Jun-07 10:18 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 10:42
Immunity188-Jun-07 10:42 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 11:00
Mark Salsbery8-Jun-07 11:00 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 11:03
Immunity188-Jun-07 11:03 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 11:08
Mark Salsbery8-Jun-07 11:08 
The compiler works top-down - so if you refer to some defined type (class, struct, typedef alias,
#define, etc) then the definitition needs to be above the code that refers to it. That way
the compiler already knows what it means when it sees it.

Typically there's a precompiled header file to make builds faster. Typically this file is called
stdafx.h. In there is all the common stuff used throughout a project so it's a good place to
put anything you want "seen" by the compiler throughout the project.

In your example, if the only place you are reffering to "CMyStringArray" is in one header file
then you could just put the typedef near the top of that file.

Make sense?

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 11:09
Immunity188-Jun-07 11:09 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 11:04
Immunity188-Jun-07 11:04 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 11:11
Mark Salsbery8-Jun-07 11:11 
GeneralRe: problem on work with Class CArray Pin
Mark Salsbery8-Jun-07 11:12
Mark Salsbery8-Jun-07 11:12 
GeneralRe: problem on work with Class CArray Pin
Immunity188-Jun-07 11:13
Immunity188-Jun-07 11:13 
AnswerRe: problem on work with Class CArray Pin
Sameerkumar Namdeo8-Jun-07 18:55
Sameerkumar Namdeo8-Jun-07 18:55 
AnswerRe: problem on work with Class CArray Pin
John R. Shaw8-Jun-07 21:24
John R. Shaw8-Jun-07 21:24 
QuestionProblem with Timers in Modeless Dialogs Pin
mrzappit8-Jun-07 8:33
mrzappit8-Jun-07 8:33 
AnswerRe: Problem with Timers in Modeless Dialogs Pin
Mark Salsbery8-Jun-07 8:46
Mark Salsbery8-Jun-07 8:46 
GeneralRe: Problem with Timers in Modeless Dialogs Pin
mrzappit8-Jun-07 9:06
mrzappit8-Jun-07 9:06 
QuestionRe: Problem with Timers in Modeless Dialogs Pin
Mark Salsbery8-Jun-07 9:26
Mark Salsbery8-Jun-07 9:26 
QuestionCRecordset for multi-table recordsets Pin
paulosuckow8-Jun-07 8:27
paulosuckow8-Jun-07 8:27 
AnswerRe: CRecordset for multi-table recordsets Pin
David Crow9-Jun-07 6:51
David Crow9-Jun-07 6:51 
Questionglobal or something like Pin
Xeef8-Jun-07 6:56
Xeef8-Jun-07 6:56 
AnswerRe: global or something like Pin
fcheng8-Jun-07 10:58
fcheng8-Jun-07 10:58 
GeneralRe: global or something like Pin
Xeef9-Jun-07 8:18
Xeef9-Jun-07 8:18 
AnswerRe: global or something like Pin
Hamid_RT8-Jun-07 19:19
Hamid_RT8-Jun-07 19:19 

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.