Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problems using STL list class Pin
Sauce!30-Aug-08 4:50
Sauce!30-Aug-08 4:50 
GeneralRe: problems using STL list class Pin
Mark Salsbery30-Aug-08 7:20
Mark Salsbery30-Aug-08 7:20 
GeneralRe: problems using STL list class Pin
Sauce!30-Aug-08 19:45
Sauce!30-Aug-08 19:45 
GeneralRe: problems using STL list class Pin
Mark Salsbery31-Aug-08 6:45
Mark Salsbery31-Aug-08 6:45 
GeneralRe: problems using STL list class Pin
Sauce!1-Sep-08 0:07
Sauce!1-Sep-08 0:07 
QuestionRe: problems using STL list class Pin
Mark Salsbery1-Sep-08 8:22
Mark Salsbery1-Sep-08 8:22 
AnswerRe: problems using STL list class [modified] Pin
Sauce!9-Sep-08 15:55
Sauce!9-Sep-08 15:55 
Questionhow to define global const class variable [modified] Pin
Electronic7529-Aug-08 19:24
Electronic7529-Aug-08 19:24 
Hello Smile | :) , I'm trying to define a global const [Class] varibles in a MFC application. This class holds an array of variables that I like to assign at the beginning and I will use this variable [and its stored const values] in my program in different classes[]. Now what I'm doing is to add a blank cpp file to my project and then I define this class variable there.

#include "MyInfoArrayClass.h"

const CMyInfoArrayClass  g_Info;
g_Info.Add(data1);
g_Info.Add(data2);
...

but compiler dose not see the definition and intellisense shows the type of g_Info as int and returns SYNTAX error and redefinition of basic type. Even when I place class definition in a header file and include header file in the source file compiler returns same errors.
[I have done this with an char type or int type, I mean I have defined a global char or int variable, and I had no problem but when I want to define a class type variable I encounter trouble.]
Where I made a mistakeConfused | :confused:
thanks Smile | :)

modified on Saturday, August 30, 2008 4:13 AM

AnswerRe: how to define global const class variable Pin
oobimoo30-Aug-08 0:12
oobimoo30-Aug-08 0:12 
QuestionHow to get Business Car Detail using Extended MAPI? Pin
manish.patel29-Aug-08 18:21
manish.patel29-Aug-08 18:21 
QuestionClass Hierarchy - Polymorphism Pin
FrankMookie29-Aug-08 15:59
FrankMookie29-Aug-08 15:59 
AnswerRe: Class Hierarchy - Polymorphism Pin
anilaabc29-Aug-08 17:15
anilaabc29-Aug-08 17:15 
AnswerRe: Class Hierarchy - Polymorphism Pin
santhoshv8429-Aug-08 17:51
santhoshv8429-Aug-08 17:51 
GeneralRe: Class Hierarchy - Polymorphism Pin
FrankMookie29-Aug-08 17:55
FrankMookie29-Aug-08 17:55 
AnswerRe: Class Hierarchy - Polymorphism Pin
Cedric Moonen29-Aug-08 22:58
Cedric Moonen29-Aug-08 22:58 
QuestionCopy the *.exe which built with VC to the other computer but it doesn't work Pin
aygrhnwms30429-Aug-08 14:53
aygrhnwms30429-Aug-08 14:53 
QuestionRe: Copy the *.exe which built with VC to the other computer but it doesn't work Pin
Mark Salsbery29-Aug-08 14:56
Mark Salsbery29-Aug-08 14:56 
AnswerRe: Copy the *.exe which built with VC to the other computer but it doesn't work Pin
aygrhnwms30429-Aug-08 15:52
aygrhnwms30429-Aug-08 15:52 
GeneralRe: Copy the *.exe which built with VC to the other computer but it doesn't work Pin
Hamid_RT29-Aug-08 17:49
Hamid_RT29-Aug-08 17:49 
GeneralRe: Copy the *.exe which built with VC to the other computer but it doesn't work Pin
aygrhnwms30429-Aug-08 17:53
aygrhnwms30429-Aug-08 17:53 
GeneralRe: Copy the *.exe which built with VC to the other computer but it doesn't work Pin
Cedric Moonen29-Aug-08 23:03
Cedric Moonen29-Aug-08 23:03 
GeneralRe: Copy the *.exe which built with VC to the other computer but it doesn't work Pin
aygrhnwms30431-Aug-08 14:39
aygrhnwms30431-Aug-08 14:39 
GeneralRe: Copy the *.exe which built with VC to the other computer but it doesn't work Pin
Cedric Moonen31-Aug-08 19:52
Cedric Moonen31-Aug-08 19:52 
AnswerRe: Copy the *.exe which built with VC to the other computer but it doesn't work Pin
santhoshv8429-Aug-08 17:56
santhoshv8429-Aug-08 17:56 
GeneralRe: Copy the *.exe which built with VC to the other computer but it doesn't work Pin
aygrhnwms30431-Aug-08 14:41
aygrhnwms30431-Aug-08 14:41 

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.