Is it possible to have a function running in the background that will transform and render a Direct3D object and the standard win32 messaging loop running in the foreground.
Have you really written the while statement correctly.
You shouldn't finish the "}" with a ";" and you haven't written any ";" behind the "i++"
Anyone knows of a small JPEG decoder?
I need to be able to load JPG files onto directdraw surfaces. If I could just get the image onto any kind of GDI or directdraw surface then I could just blt it. But I don't know how the files are compressed and writing a routine for that would therefore be...
If you want to create files and write/read data, I would suggest you use the ifstream and ofstream functions. The good things with them is that you can write and read whole structures of data in one single call.
#include <fstream.h>
struct Test
{
public:
int iVar;
char cVar;
};
Test...
I can't figure out how to time events in my app.
SetTimer() doesn't seem to send WM_TIMER events to the message que within reasonable precision. (A SetTimer call with 1000 milliseconds on the timeout seem to end up with a WM_TIMER message every 800 to 1200 milliseconds).
And when I call the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.