Whats undefined about it? It Mallocs(40) bytes.. then Frees(40) bytes.
Yep, having tried release mode yet... but wouldn't it just forgo the debug checks and simply go with release versions of...
Type: Posts; User: Deo
Whats undefined about it? It Mallocs(40) bytes.. then Frees(40) bytes.
Yep, having tried release mode yet... but wouldn't it just forgo the debug checks and simply go with release versions of...
that is quite interesting.... the last guy was right although without his answer I woulda shrugged my shoulders as well for a good 30 mins... pesky compilers optimizing all over the place.
...
Indeed you are correct the destructors for each object in the array are not being called. So indeed delete without brackets would fail to free all memory.... but what if there is no need for a...
So I've been programming for quite a while and I swear to God when you create an array on the heap.
float *f = new float[5];
You must, to avoid a memory leak, call:
One of the Borland IDEs i used worked in a similar way as Visual Basic where you were presented with a blank sheet and you could drag and drog listboxes, buttons, etc... onto the blank sheet...
Hear blender is a very good free 3D modeler. I've seen recomendations by others that this is the best free one out there..
Already got two commercial modelers but if I didn't I would surely try...
Things in parenthesis aren't functions.
int main()
{
int x = 3;
if(x == 5)
cout << "x is equal to 5";
When I started learning win32 API I used free tutorials supplied at the following link:
http://www.gametutorials.com/tutorials.htm
The tutorials went step by step through creating a window. ...
cool man.. with have to take a serious look at this when I get some more free time.
Hard to say... perhaps someone else can give you a more concrete answer, but I've gotten this error before and spent hours trying to fix it not knowing why it was occuring..
For me my program was...
Direct X is msdn.microsoft.com/directx
(SDK = Software Development Kit [develop direct x games]
(Runtime = Allows you to play direct x games)
Open gl is http://www.opengl.org/
Note these are...
You do not have to put the code in two seperate files for it to work..
I often write both my class specification and definition in the .h to make writing easier and then move the definition part...
u r able to compile my code and run it succesfully?
I get:
"Error"
"Device not acquired"
which is a custom message box I have set to pop up when my program tries to unaquire the direct...
that thought never entered my mind..
went back and changed aspect ratio ..
1.6:1??
or 1.33:1?
ahhh I c... yep had to directly specify the width and height because if I don't then the LPD3DXSPRITE has a hissy fit and goes bonkers... though I guess I'll work around it...
still get quite a...
Checklist
Direct Input object created: YES.
Direct Input device created: YES.
Set data format: YES.
Cooperative level: YES.
Acquire: OH YEAH.
Unacquire: NOPE.
I am getting the DI_NOEFFECT...
i think inheritance depends on what your inheriting...
If yah got a bald old fat man as your parent... then by gad.. inheritance sucks... who said that parent wants annoying children anyways? They...
oop when I said I tried some texturing wrapping I was wrong.. I actually tried to set the texture addressing..
g_Direct3dDevice->SetSamplerState(0, D3DSAMP_ADDRESSU, D3DTADDRESS_WRAP);
I...
owww... my head hurts....
I looked at your reply and said to myself.. I've tried that a million times over the last 3 days.. and the errors always popped up the same.....
I had been linking my...
Well.. making some progress... the background is now scrolling.. albeit a bit corrupt... Very wavy on the side that is actually displaying the image followed by corruption on the right side... ...
yep, I have a directx program rendering an animated sprite as well as a background image being displayed... so I have all my directories setup correctly.. Just when I add the above that error is what...
Is direct input a thing of mystery? Cause right now its giving me an ulcer.
I had Visual C++ 6.0 and I got a debugging corrupt error. Microsoft site said as of December 2004 SDK Visual C++ 6.0...
I'm gonna have to leave MSVC 6... too much hastle even though I have come to like it... sending me on a wild goose chase just to try and get something simple such as direct input to work... days...
Translating texture coordinates..? I'm not getting this to work and I'm not sure if I'm even going down the right path.. I've run out of ideas to try.. so I'll just post what I'm doing and see if...
gave the Subversion a go... kinda weird but with a nice GUI frontend (tortoiseSVN) its golden..
Damn.. wish I knew about this stuff before.. so much easier to code and experiment.
Damn life and...