Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by monstrum

  1. monstrum

    Is there a c/c++ function that determines if a given number is a prime

    Why not declare the function as a bool
  2. monstrum

    Multithreading and Direct3D

    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.
  3. monstrum

    How can I automaticly create variables without declaring pointers?

    Have you really written the while statement correctly. You shouldn't finish the "}" with a ";" and you haven't written any ";" behind the "i++"
  4. monstrum

    Anyone knows of a small JPEG decoder

    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...
  5. monstrum

    CreateFile

    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...
  6. monstrum

    WM_TIMER and GetTickCount()

    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...

Part and Inventory Search

Back
Top