Ok, that's like something I was looking for, thanks. What did you use when you were doing uncompressed stuff? Does anybody know any other libraries like that?
Type: Posts; User: SgtMuffles
Ok, that's like something I was looking for, thanks. What did you use when you were doing uncompressed stuff? Does anybody know any other libraries like that?
I not too concerned with the specifics. It wouldn't need to be run realtime, I'd just run the simulation, maybe prompt to save it, then re-do everything there. I'd be fine with 800 x 600, 16-bit...
Hi, I've been working on a program that will have lots of visual output but minimal user input (simulation of sorts) and I figured that a great thing to have would be the option to output everything...
Ack, not back to the Mac-bashing counter-bashing/whatever you want to call it!
Ok, so I looked at the CreateFile option and that looks like it could prove helpful. It says that physical drives can...
Yeah, I'd be more looking to go down the OS road for reasons like those mentioned by Salem. So if people could just give me names of functions/libraries/anything to look up, it would be appreciated....
Heh, I definitely know that, but I wasn't expecting a solution for CP/M or something. Besides, this forum only has sections for Windows and Linux.
Well ideally I'd like to know both, so I'll take information about whatever you know best.
Thanks again,
Mike
Hi, I was wondering how low-level functions of the hard drive can be accessed. I'd like to be able to retrieve the MBR (or any other sector for that matter) if anybody knows how to do that. I realize...
So I was trying to practice C as opposed to C++ which I'm more or less used to (at least when it comes to doing hw assignments), and I wrote the following code:
#include <stdio.h>
#include...
Awesome, thanks a bunch!
Why yes it is. How about the sz?
The default template for a windows program that Dev-C++ gives me has the window class name by default be "szClassName". The winprog.net one uses "g_szClassName" for one and "g_hbmBall" as a name for...
Thanks, that helped a bunch!
Hi, I put a bitmap in a window that I thought it would fit in, but part of the right side of the bitmap is missing. I set the width to be 400 pixels, and the drawing area is obviously smaller than...
Ok, so I changed a line in the non-functioning section to
HBITMAP graph = CreateCompatibleBitmap(hDC, 400, 300);
and it seems to work fine. I guess it makes sense that I should be making it...
Ok, I have the following code in my window processes function (where you would expect it in the switch-case block):
case WM_PAINT:
{
PAINTSTRUCT Ps;
HDC hDC =...
Thanks for the reply, bithub. Now, how exactly would I gain access to similar low-level driver functions? In a perfect world I'd be able to treat the entire screen as a bitmap and have control over...
Hi, I'm considering futzing with graphics programming and the like, and I know that the main graphics libraries/tools/whatever are DirectX and openGL. Now, I have a question: Since these basically...
Awesome, things seem to be working fine now. Thanks a bunch.
Hi, I have a program that's really simple, it just creates a window and fills the screen with the color red. It does this by having a global HBITMAP that is defined in a function that uses...
Oh, also, is there a way to modify a bitmap without creating a DC for it? I've read in tutorials that this is the only way, but you just said that you only really need it when WM_PAINT is sent
Cool, thanks guys. One more question: I tried to set the brush color of one of my DCs using SetDCBrushColor() and for whatever reason I got a compiler error saying that it was undeclared. This struck...
Aw, I think I gotcha. Should I store everything in a separate bitmap and only use a DC when I'm actually drawing it to the window? I've heard bad things happen when you have too many DC's open.
So why does moving it and resizing it make the DC out of its scope? How exactly is the appearance of the window stored?
I have a really basic program that's only job is to fill a window with pixels of random color in random places. I do this with SetPixel() placed inside my windows procedure (just to make sure this...