I should have said :
"If there is insufficient memory for the allocation request, by default operator new returns NULL"
Is from MSDN for Visual Studio 6
Type: Posts; User: spacecadet23
I should have said :
"If there is insufficient memory for the allocation request, by default operator new returns NULL"
Is from MSDN for Visual Studio 6
Straight from MSDN :
"If there is insufficient memory for the allocation request, by default operator new returns NULL. You can change this default behavior by writing a custom exception-handling...
does it need brackets around a switch statement? i always just use:
switch(var) {
default:
case 1:
break;
}
This always works fine for me. i though the case and break keywords...
Try CxImage Libraries
It's a bit of a pain the include in your project but once you have it's very straight forward.
It allows you load bmps,jpegs,gifs etc... rotate, crop, resize... and then...
Hey,
I've got an SDI MFC application that initialises a Direct3D Device inside one of the View Classes.
CApp >> CMainFrame >> CView >> DirectX
I'm also using the basic View switching model(no...
Hey
I'm probably gonna get slated for saying this but...
The MFC framework makes basic graphic drawing very simple.
// Draw a line
pDC->MoveTo( x, y );
Hey,
To get the logical coords of a mouse click in a veiw class i have ended up creating a new DC and duplicting the OnDraw() setup
Is there an easier way??
//...
the code you have is way too simplistic. avoid using static values (like 1000) make everything variables from the start.
Initialise all variables when they are declared (or at least before you use...
maybe i'm missing something but couldn'y you just do
if (number==1) {
system("cls");
cout <<"WASHING" <<endl <<endl;
int result = main2();
}
Thanks for the link, i'll need to read through it properly in the morning.
That's what i though at first but after doing some investigation that part of the code is suprisingly quick.
The...
Declare the enum and an array of double (or float) values....
enum {
one,
two,
three,
}
hey,
The code goes through several loops, reading from the file, rewinding, reading again - to me most of this seems totally unnecessary but it sets up several variables in the process, including...
Hey,
I've got a (very) messy bit of code that was originally written in watcom c++ and compiled as a 32bit dos protected mode exe using dos4gw extender.
It basically takes a list of lines from...