Click here to Skip to main content
16,008,490 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: step through debugging useless in C++ Pin
tbbooher11-Feb-02 12:37
tbbooher11-Feb-02 12:37 
GeneralRe: step through debugging useless in C++ Pin
Christian Graus11-Feb-02 12:39
protectorChristian Graus11-Feb-02 12:39 
GeneralRe: step through debugging useless in C++ Pin
alex.barylski11-Feb-02 15:07
alex.barylski11-Feb-02 15:07 
GeneralRe: step through debugging useless in C++ Pin
11-Feb-02 18:27
suss11-Feb-02 18:27 
QuestionHow to retrieve the name of the domain on Win NT 4.0? Pin
Chen Venkataraman11-Feb-02 9:59
Chen Venkataraman11-Feb-02 9:59 
AnswerRe: How to retrieve the name of the domain on Win NT 4.0? Pin
Joaquín M López Muñoz11-Feb-02 10:32
Joaquín M López Muñoz11-Feb-02 10:32 
GeneralRe: How to retrieve the name of the domain on Win NT 4.0? Pin
Chen Venkataraman11-Feb-02 10:39
Chen Venkataraman11-Feb-02 10:39 
GeneralMemory Allocation problem Pin
ISIS5511-Feb-02 9:24
ISIS5511-Feb-02 9:24 
I'm working on a map editor for my game and I've ran into some problem. To give you an idea of what's it supposed to do, think of the old game mine-field. Now my program is supposed to put an unlimited number of those mine-objects manually. The number of the 'mines' could range between 0 and 384. The 'mine' is derived from a class.

I solved the problem by defining an array with the maximum of 384 mine-objects, each representing a place in the map. And when I want to actually put the mine I just "activate" it. It works, but it's a waste of a lot of memory because it's 384 mine-objects, 384 prize-objects etc etc. You get the idea.

How can I implement a better way to define new objects at run time? I figured memory allocation would help but how does it work with classes? I only used it for simple arrays not objects that contain various types of variables.

Thanks in advance,

Isaac Sasson,
Small time programmer - complainer at large.
Sonork ID 100.13704
GeneralRe: Memory Allocation problem Pin
Joaquín M López Muñoz11-Feb-02 9:41
Joaquín M López Muñoz11-Feb-02 9:41 
GeneralRe: Memory Allocation problem Pin
Tim Smith11-Feb-02 9:54
Tim Smith11-Feb-02 9:54 
GeneralRe: Memory Allocation problem Pin
ISIS5511-Feb-02 10:40
ISIS5511-Feb-02 10:40 
GeneralCFile::write | create and Windows 2000/XP Pin
mimi11-Feb-02 8:59
mimi11-Feb-02 8:59 
GeneralRe: CFile::write | create and Windows 2000/XP Pin
Mazdak11-Feb-02 9:40
Mazdak11-Feb-02 9:40 
GeneralMANY THANKS ! Pin
mimi11-Feb-02 10:15
mimi11-Feb-02 10:15 
GeneralTrying to use CFormView in a dialog :o) Pin
Jon Hulatt11-Feb-02 8:28
Jon Hulatt11-Feb-02 8:28 
GeneralWhy I now feel like a spanner Pin
Jon Hulatt11-Feb-02 8:30
Jon Hulatt11-Feb-02 8:30 
GeneralCListCtrl report - resizeing columns (resezing same in Outlook 98/2000/2002 - solution !(?) ) Pin
Wizard_0111-Feb-02 4:28
Wizard_0111-Feb-02 4:28 
GeneralRe: CListCtrl report - resizeing columns (resezing same in Outlook 98/2000/2002 - solution !(?) ) Pin
Joaquín M López Muñoz11-Feb-02 5:07
Joaquín M López Muñoz11-Feb-02 5:07 
GeneralRe: CListCtrl report - resizeing columns (resezing same in Outlook 98/2000/2002 - solution !(?) ) Pin
Wizard_0111-Feb-02 5:15
Wizard_0111-Feb-02 5:15 
Questionhow to set default size of propertypage Pin
parag11-Feb-02 3:45
parag11-Feb-02 3:45 
AnswerRe: how to set default size of propertypage Pin
Joaquín M López Muñoz11-Feb-02 4:26
Joaquín M López Muñoz11-Feb-02 4:26 
QuestionWhy do my radio buttons never appear in Classwizard? Pin
Jon Hulatt11-Feb-02 3:17
Jon Hulatt11-Feb-02 3:17 
AnswerRe: Why do my radio buttons never appear in Classwizard? Pin
Mazdak11-Feb-02 3:32
Mazdak11-Feb-02 3:32 
AnswerRe: Why do my radio buttons never appear in Classwizard? Pin
Rickard Andersson2011-Feb-02 3:47
Rickard Andersson2011-Feb-02 3:47 
GeneralRe: Why do my radio buttons never appear in Classwizard? Pin
Jon Hulatt11-Feb-02 4:20
Jon Hulatt11-Feb-02 4:20 

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.