I use it at work to keep track of slashdot and a few webcomics. I haven't found one I really like yet. The best one I've seen seems to be the one built in to IE7, but even that isn't quite what I want.
I'm writing a graphics engine (ambitious, I know) and I need to use the BIOS. I'm operating under Windows XP and can write in assembly or C/C++. Does anyone know how to a) use interrupts in a Win32 application or b) use API in a DOS application? Thanks a ton!
I need interrupts to interact directly with the hardware (speakers, video memory, etc.). Every time I try in C/C++ with an asm block, the program crashes. I have been able to use int86 in the past, but I cannot find the library in which it is defined. The same happens with PE format assembly, which I need to use to access the Windows API for functions like ExitProcess. I haven't figured out how that can be done in DOS because the PE format usually holds the import data, which in not in DOS executeables. I considered a device driver, so I could call interrupts "legally" from a Win32 application, but the only compiler I have that can accomplish that is Miracle C. I can't find a Windows NT device driver written in C anywhere. It comes to this: I need a few things from DOS and a few things from Windows, but I cannot use them together.
If I could use int86, this entire problem would be solved...Do you know what library (DLL) it's in? Is it faster than calling the BIOS interrupts directly?
I'm afraid that the asm() function isn't supported in my compiler; I'm using DMC. I can use an asm block (for example, asm int 21h), but that always crashes. I think it has something to do with Windows XP running on top of DOS, or some such thing.
Okay, if I put 'inline' in the function declaration, it doesn't crash, but it doesn't do anything, either. If I leave out 'inline', I get this message: The NTVDM CPU has encountered an illegal instruction.
If I can't call interrupts directly, do you know of any API that will allow me to access video memory? None of this makes sense, though. At some point, Windows has to call some interrupt, so why can it do it but I can't?
Have you tried Project Euler Problem 20? My program is telling me 675 but the web site claims that's wrong. My program works on smaller cases that I can check manually, so I'm at a loss. Am I misunderstanding the question?
I have been using DirectX for about two years, but I haven't figured out how to load models and animations. Plus, there were a few things I felt were missing from the system. I may go back to it eventually, but I've been considering trying my hand at my own engine, if only to get some insight into the way they work.
Edit: I just realized I've had a tutorial to load models for some time. I may just program my engine as a hobby. Who knows, maybe it'll actually be useful someday!
What do you mean by engine? Most modern game engines are built on top of DirectX. Are you trying to do you own 3d rendering? I think that's a great idea, it will be a good learning experience. I'd recommend building it on top of a 2d library like Direct Draw though.
It's kind of built on top of the Windows GDI so far. There were a few features I wanted to add that DirectX didn't have. I have always considered writing something yourself to be the best teacher. I was also going to construct a "composer" for writing music files in some format that I may make up myself. The music and sound side of the engine will use MIDI. The rest of it hasn't really been planned yet, but that's what I have so far.
I'm writing a graphics engine (ambitious, I know) and I need to use the BIOS. I'm operating under Windows XP and can write in assembly or C/C++. Does anyone know how to a) use interrupts in a Win32 application or b) use API in a DOS application?
Thanks a ton!
I need interrupts to interact directly with the hardware (speakers, video memory, etc.). Every time I try in C/C++ with an asm block, the program crashes. I have been able to use int86 in the past, but I cannot find the library in which it is defined. The same happens with PE format assembly, which I need to use to access the Windows API for functions like ExitProcess. I haven't figured out how that can be done in DOS because the PE format usually holds the import data, which in not in DOS executeables. I considered a device driver, so I could call interrupts "legally" from a Win32 application, but the only compiler I have that can accomplish that is Miracle C. I can't find a Windows NT device driver written in C anywhere. It comes to this: I need a few things from DOS and a few things from Windows, but I cannot use them together.