now i have NO idea what else youre doing in your program
but with me, usually when i get an error like that during delete,
it means somewhere in the program i probly wrote past the end of the 256...
Type: Posts; User: phatslug
now i have NO idea what else youre doing in your program
but with me, usually when i get an error like that during delete,
it means somewhere in the program i probly wrote past the end of the 256...
oh yes.. each member of an array can be pretty much anything you want, like a struct a class, another array (which is what 2 dimentional arrays are)
try this:
struct Slot
{
int piece;
int...
Youre right, the difference is completely insignificant
but I was just wondering
and out of curiosity, how do i make my compiler spit out ASM(thats MSVC++ for me).
i learned ASM on my TI-83+...
which is faster, better, compiles into better code and such...
bool function()
{
if (something) return true;
return false;
{
Say I have a function runs a coupla 1000 times.
Would it increase the speed if i declared the variables in that function as static and simply re-initialized their values myself every time?
I...
ok, well just solved my problem
for anyone who cares it should go something like this
array = new CClass*[somenumber];
Say I want an Array of Pointers to Classes. This is dynamic btw, so the size isnt always set.
Shouldn't i do this???
CClass** array;
array = new int[someNumber];
Does this code do it right???
Im getting the surface but theres some wierd stuff in it, definitley no bitmap of mine.
This isnt all my code so i dont quite understand parts of it, for example, the...
Right now, all I need is to update the screen a few times every second, so I have a timer set to 250 milliseconds and the OnTimer code is simply:
dsFront->Blt( NULL, dsBack, NULL, DDBLT_WAIT, NULL...
Does this code do it right?
HRESULT r;
r = DirectDrawCreateEx (0,(void**)&ddMain,IID_IDirectDraw7,0);
if FAILED(r) return false;
r = ddMain->SetCooperativeLevel( m_hWnd,...
Ive got an program using DirectDraw in a window. Everything initializes correctly, DD object, the front and back buffers, and clipper (All this is on the window's OnInitDialog).
My question is...
hmm... I couldnt readily give u more code without pasting a coupla hundred lines. Ahh.. I probably screw up the heap somewhere else in the program and this is how it manifests itself.
Also I...
In a base class, i declare an integer pointer,
int* cellDesc;
Then, in the constructor of a derived class...
cellDesc = new int[somenumber];
and in the destructor of that derived class...
Are you perhaps thinking of zipping them?
So however many files u have get compressed into one .zip file (which u can make into a self-extracting .exe). Then the user downloads your file and...
Hey thanks alot, worked pretty well.
I have another question now... is there some way so that when you call a overloaded method from a derived class, both that one and the base class' will be...
hmm.. Im not quite sure what you mean, sorry I'm sorta new to C++. From MSDN all i seem to gather is that subclassing only has to do with windows, like CWnd.
I was thining that I would need to...
I've got an abstract class, CFractal, and two derived classes, CFractalMandel and CFractalJulia. I plan on adding several more in the future.
Well, in my main app i have a pointer to a CFractal...