Click here to Skip to main content
15,917,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RE: Set ComboBox Values ? Pin
Sonu Kapoor6-May-02 5:51
Sonu Kapoor6-May-02 5:51 
GeneralMessenger type app in VC++ Pin
unknown soldier5-May-02 21:56
unknown soldier5-May-02 21:56 
Generalunable to execute database apps Pin
Bhikshapathi Gorantla5-May-02 21:37
Bhikshapathi Gorantla5-May-02 21:37 
GeneralSDI in Dll Pin
5-May-02 18:55
suss5-May-02 18:55 
QuestionHelp with _lfind? Pin
Learning5-May-02 17:47
Learning5-May-02 17:47 
AnswerRe: Help with _lfind? Pin
James R. Twine6-May-02 3:02
James R. Twine6-May-02 3:02 
Generalusing your own header in a cpp. Pin
SilverShalkin5-May-02 17:04
SilverShalkin5-May-02 17:04 
GeneralRe: using your own header in a cpp. Pin
Christian Graus5-May-02 17:31
protectorChristian Graus5-May-02 17:31 
SilverShalkin wrote:
ps... i guess i could check the "display this message as is (no HTML)

Yeah, there's a thought.....

SilverShalkin wrote:
void Monsters()
{
Counters goblin =
{"goblin", //cname
25 // chp
};
}//end Monsters


Of COURSE you can't access goblin in your cpp. It doesn't exist !!! If you call Monsters, then goblin will exist between you making the call and the next line. IF monsters is a function inside a class, then Counters needs to be a member variable. If monsters is a global function then you could make the variable static. Another approach is to use namespaces to safely make it global.



Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
GeneralRe: using your own header in a cpp. Pin
Paul M Watt5-May-02 19:32
mentorPaul M Watt5-May-02 19:32 
GeneralRe: using your own header in a cpp. Pin
SilverShalkin6-May-02 11:59
SilverShalkin6-May-02 11:59 
GeneralRe: using your own header in a cpp. Pin
Christian Graus6-May-02 12:21
protectorChristian Graus6-May-02 12:21 
GeneralRe: using your own header in a cpp. Pin
Paul M Watt6-May-02 13:15
mentorPaul M Watt6-May-02 13:15 
GeneralRe: using your own header in a cpp. Pin
Christian Graus6-May-02 13:39
protectorChristian Graus6-May-02 13:39 
GeneralRe: using your own header in a cpp. Pin
Paul M Watt6-May-02 14:03
mentorPaul M Watt6-May-02 14:03 
GeneralRe: using your own header in a cpp. Pin
Christian Graus6-May-02 14:47
protectorChristian Graus6-May-02 14:47 
GeneralRe: using your own header in a cpp. Pin
Paul M Watt6-May-02 16:07
mentorPaul M Watt6-May-02 16:07 
GeneralRead this. Pin
SilverShalkin6-May-02 15:21
SilverShalkin6-May-02 15:21 
GeneralRe: Read this. Pin
Christian Graus6-May-02 16:21
protectorChristian Graus6-May-02 16:21 
GeneralRe: Read this. Pin
SilverShalkin7-May-02 3:05
SilverShalkin7-May-02 3:05 
GeneralRe: using your own header in a cpp. Pin
Paul M Watt6-May-02 12:48
mentorPaul M Watt6-May-02 12:48 
GeneralHelp with NetStatisticsGet Pin
Lac5-May-02 16:53
Lac5-May-02 16:53 
GeneralDebugging - mem allocation Pin
Coremn5-May-02 16:46
Coremn5-May-02 16:46 
GeneralRe: Debugging - mem allocation Pin
Ganesh Ramaswamy5-May-02 22:10
Ganesh Ramaswamy5-May-02 22:10 
QuestionCHString? In SDK? Pin
Nish Nishant5-May-02 15:21
sitebuilderNish Nishant5-May-02 15:21 
AnswerRe: CHString? In SDK? Pin
Michael Dunn5-May-02 16:27
sitebuilderMichael Dunn5-May-02 16:27 

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.