Click here to Skip to main content
15,916,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I'm searching for Visual C++ Books Pin
Jetli Jerry4-Mar-05 2:35
Jetli Jerry4-Mar-05 2:35 
GeneralRe: I'm searching for Visual C++ Books Pin
ur_unholyness4-Mar-05 7:29
ur_unholyness4-Mar-05 7:29 
GeneralRe: I'm searching for Visual C++ Books Pin
Anand for every one4-Mar-05 19:39
Anand for every one4-Mar-05 19:39 
GeneralSending a digitally signed email Pin
Muhammad Irfan Azam4-Mar-05 1:04
Muhammad Irfan Azam4-Mar-05 1:04 
Questionglobally scoped array of objects? Pin
baxybaxy4-Mar-05 0:51
baxybaxy4-Mar-05 0:51 
AnswerRe: globally scoped array of objects? Pin
Steen Krogsgaard4-Mar-05 4:14
Steen Krogsgaard4-Mar-05 4:14 
GeneralRe: globally scoped array of objects? Pin
Chris Meech4-Mar-05 5:42
Chris Meech4-Mar-05 5:42 
GeneralRe: globally scoped array of objects? Pin
Steen Krogsgaard6-Mar-05 21:05
Steen Krogsgaard6-Mar-05 21:05 
Right. I would use a container instead of a raw array. But then again, you do know that City points to the first item as that is the address returned by new. I suppose that you mean that the pointer can be modified inadvertently (or even on purpose) in the program since it's not const - but hey, this is not VB, you're supposed to know what you do with your pointers! Poke tongue | ;-P

Unfortunately I don't think using a const pointer will work in this instance as the size of the array is not known at declaration/definition time but only after the XML file is read (numberofcities is read from the XML file according to the OP).

Cheers
Steen.

"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
QuestionWhat is the Mystery behind Release Folder ? Pin
zahid_ash4-Mar-05 0:36
zahid_ash4-Mar-05 0:36 
AnswerRe: What is the Mystery behind Release Folder ? Pin
jan larsen4-Mar-05 1:42
jan larsen4-Mar-05 1:42 
GeneralRe: What is the Mystery behind Release Folder ? Pin
aritosteles5-Mar-05 13:53
aritosteles5-Mar-05 13:53 
Generaltext setting in list control Pin
deldeep3-Mar-05 23:39
deldeep3-Mar-05 23:39 
GeneralRe: text setting in list control Pin
David Crow4-Mar-05 2:59
David Crow4-Mar-05 2:59 
GeneralRe: text setting in list control Pin
deldeep4-Mar-05 20:45
deldeep4-Mar-05 20:45 
GeneralRe: text setting in list control Pin
David Crow7-Mar-05 3:20
David Crow7-Mar-05 3:20 
GeneralRe: text setting in list control Pin
deldeep7-Mar-05 17:39
deldeep7-Mar-05 17:39 
GeneralCREATE PROCESS Pin
sunit53-Mar-05 22:59
sunit53-Mar-05 22:59 
GeneralRe: CREATE PROCESS Pin
Jetli Jerry4-Mar-05 0:46
Jetli Jerry4-Mar-05 0:46 
GeneralRe: CREATE PROCESS Pin
sunit54-Mar-05 2:13
sunit54-Mar-05 2:13 
GeneralRe: CREATE PROCESS Pin
sunit54-Mar-05 2:15
sunit54-Mar-05 2:15 
GeneralRe: CREATE PROCESS Pin
David Crow4-Mar-05 3:05
David Crow4-Mar-05 3:05 
GeneralSet background colour on a CDateTimeCtrl Pin
roccap3-Mar-05 22:46
roccap3-Mar-05 22:46 
GeneralRe: Set background colour on a CDateTimeCtrl Pin
namaskaaram4-Mar-05 1:23
namaskaaram4-Mar-05 1:23 
Generalone question regarding dialogz!!!!! Pin
namaskaaram3-Mar-05 22:46
namaskaaram3-Mar-05 22:46 
GeneralRe: one question regarding dialogz!!!!! Pin
Jetli Jerry4-Mar-05 0:27
Jetli Jerry4-Mar-05 0: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.