Click here to Skip to main content
15,920,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionany fn to know the memoru allocated by SafeArrayCreate() Pin
GANsJob23-Mar-07 7:24
GANsJob23-Mar-07 7:24 
AnswerRe: any fn to know the memoru allocated by SafeArrayCreate() Pin
prasad_som23-Mar-07 20:44
prasad_som23-Mar-07 20:44 
Questioncan't retrieve the string from string table using loadstring() Pin
GANsJob23-Mar-07 7:16
GANsJob23-Mar-07 7:16 
AnswerRe: can't retrieve the string from string table using loadstring() Pin
perle123-Mar-07 14:22
perle123-Mar-07 14:22 
Questionconfusing problem Pin
swatgodjr23-Mar-07 6:58
swatgodjr23-Mar-07 6:58 
AnswerRe: confusing problem Pin
Christian Graus23-Mar-07 7:10
protectorChristian Graus23-Mar-07 7:10 
GeneralRe: confusing problem Pin
swatgodjr23-Mar-07 7:42
swatgodjr23-Mar-07 7:42 
AnswerRe: confusing problem Pin
Phil J Pearson23-Mar-07 7:38
Phil J Pearson23-Mar-07 7:38 
You probably need to understand the difference between declared and defined.

declaring a variable tells the compiler that such a variable exists somewhere [else].

defining a variable causes the variable to exist.

This is somewhat of a simplification for the sake of a quick answer

You may be seeing an undefined variable error for a variable that is declared in your header file; that is, you told the compiler that the variable exists but it doesn't exist. Compilers (and linkers) don't like being lied to. Wink | ;)

Phil



The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.

AnswerRe: confusing problem Pin
Sameerkumar Namdeo23-Mar-07 22:22
Sameerkumar Namdeo23-Mar-07 22:22 
GeneralRe: confusing problem Pin
swatgodjr24-Mar-07 2:52
swatgodjr24-Mar-07 2:52 
GeneralRe: confusing problem Pin
Sameerkumar Namdeo25-Mar-07 16:48
Sameerkumar Namdeo25-Mar-07 16:48 
QuestionInitializtion Code for Dialog Boxes Pin
gunner_uk200023-Mar-07 4:48
gunner_uk200023-Mar-07 4:48 
AnswerRe: Initializtion Code for Dialog Boxes Pin
led mike23-Mar-07 4:52
led mike23-Mar-07 4:52 
AnswerRe: Initializtion Code for Dialog Boxes Pin
Ravi Bhavnani23-Mar-07 6:33
professionalRavi Bhavnani23-Mar-07 6:33 
GeneralRe: Initializtion Code for Dialog Boxes Pin
Phil J Pearson23-Mar-07 7:40
Phil J Pearson23-Mar-07 7:40 
QuestionDifferent question....???? Pin
pblais23-Mar-07 3:27
pblais23-Mar-07 3:27 
AnswerRe: Different question....???? Pin
Chris Losinger23-Mar-07 3:42
professionalChris Losinger23-Mar-07 3:42 
GeneralRe: Different question....???? Pin
pblais23-Mar-07 4:29
pblais23-Mar-07 4:29 
GeneralRe: Different question....???? Pin
Chris Losinger23-Mar-07 4:48
professionalChris Losinger23-Mar-07 4:48 
AnswerRe: Different question....???? Pin
Maximilien23-Mar-07 4:43
Maximilien23-Mar-07 4:43 
AnswerRe: Different question....???? Pin
Phil J Pearson23-Mar-07 7:44
Phil J Pearson23-Mar-07 7:44 
QuestionPassing a 2dimension array to a function without specifying number of elements.. Pin
subburamKR23-Mar-07 3:13
subburamKR23-Mar-07 3:13 
AnswerRe: Passing a 2dimension array to a function without specifying number of elements.. Pin
CPallini23-Mar-07 3:17
mveCPallini23-Mar-07 3:17 
AnswerRe: Passing a 2dimension array to a function without specifying number of elements.. Pin
toxcct23-Mar-07 3:18
toxcct23-Mar-07 3:18 
AnswerRe: Passing a 2dimension array to a function without specifying number of elements.. Pin
Christian Graus23-Mar-07 3:18
protectorChristian Graus23-Mar-07 3:18 

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.