|
|
#1 (permalink) |
|
Cloud's Hair Spray
Join Date: May 2006
Posts: 63
Reputation: 10
|
Hey I'm back with a couple programming questions, I'm using c++ in Microsoft Visual Studio .NET 2003, and MFC.
I'm working on my map editor... Screeny: http://home.fuse.net/Dragonstorm/MapEditor.jpg Yes the map on the screen stinks, it was a File->Load Test.... First Question..... With the Dialog Builder how do I set the Min and Max Values of a Slider Control? :rolleyes: I looked through books, I could do it in code, but I was hoping there was a way to do it in the editor....Less to keep track of If i decide to change how it's going to work... Second Question..... I have a linear array [Size of image * Size of Image] to hold the height data because you cant create a 2D array with Code:
char *map = new char [Size][Size]; 'Size' being a variable
__________________
Legends of Alterion - Under Development
toast lands butter down, cats land on their feet, what happens when u strap toast to a cat?..... Math indicates they will hover in quatom indecision...(yet to be tested) |
|
|
|
|
#2 (permalink) | ||
|
Luigi’s Pizza
|
Quote:
Code:
char **map = new char[Size]; for(int a=0; a < Size; a++) map[a] = new char[Size]; Quote:
__________________
Gauntlets of Recursion (+5) - My game development journal.
|
||
|
|
|
|
#3 (permalink) |
|
Cloud's Hair Spray
Join Date: May 2006
Posts: 63
Reputation: 10
|
an array in an array.....nifty....., I guess i'll try google i was wondering if anyone had any neat tricks for it
thanks hope I might rewrite to the array in an array thing..
__________________
Legends of Alterion - Under Development
toast lands butter down, cats land on their feet, what happens when u strap toast to a cat?..... Math indicates they will hover in quatom indecision...(yet to be tested) |
|
|
| Thread Tools | |
| Display Modes | |
|
|