Does anyone know of an easy way of converting HBITMAP to BITMAP so I can have the bitmap info. when I use GetObject() i can't access the info of the pixels. any help? It's probably really easy,...
Type: Posts; User: DutchStud
Does anyone know of an easy way of converting HBITMAP to BITMAP so I can have the bitmap info. when I use GetObject() i can't access the info of the pixels. any help? It's probably really easy,...
Can someone help me with getting data from the registry. I use these functions. The first works, but the second doesn't. I don't even know if i'm using the right function for the second one.
...
Help me out with how to get this value now. I get success on the first function, but the second fails. I don't even know if the second is the correct function.
if(
RegOpenKey(
...
thanks.
Is there a way to find the default history folder? I thought there was, but I could only find default system folder and default windows folder. thanks in advance.
To get info from a server, that file has to be running on a website, not just the file be located there right? Can you do that through a free homepage provider?
say i have an array of structures that is filled, and then i want to add another one. Do you understand what I'm saying? I have two array elements, and I want to add a third. Is it possible to do...
I would say change SRCPAINT to SRCCOPY first. that's probably your problem. if that doesn't work, then try some of the other suggestions.
try making another dc using CreateCompatibleDC() and load your bitmap into it. then bitblt the compatible dc into hdc.
I think i saw one implementation once that if PeekMessage returned that there wasn't a message, the program kept doing something, and if it returned that there was a message, it'd call GetMessage
I used the function you gave me, and it gave me the same type of error, not in compiling but in debugging. it gave me it where you incremented both pointers.
So why won't it let me use sname[s]=c;
Why do you increment the pointers? (*pString++=*pLastSlash++;)
I'm trying to make a function that turns a filename into a shorter name. For example "c:\windows\clouds.bmp" to "clouds". The problem comes at sname[s]=c; Does anyone know what the problem is? I...
wasn't thinking. starbook, sorry, no offence meant.
servers are done with sockets too, right?
what is stardock? ( i don't have much room on the computer, and i want to know if it would be worth my downloading )
Thanks for the help, yeah, i got the copying thing figured out, but i never would have figured out the get object, so thanks.
I don't know much about DrawState, so I don't know if that's your problem or not, but try using bitblt or something like that.
I'm trying to make a bitmap smoothing program for myself, and I believe I know how to do it, but my problem is, well, number 1 when i load the bitmap using LoadImage and then use...
you could also use the case WM_MOUSEMOVE, one of the params - i don't remember which - is a POINT which is your mouse position. if you have bitmaps, you can use the PtInRect() command, which will...
What is the difference between c and c++? I've had a compiler and i've been programming for a while. I program in WinAPI too. Frankly, I have no idea which one I program in.
Startup: C:\logo.sys
"it is now safe to shut off your computer": C:\windows\logos.sys
"windows is shutting down": C:\windows\logow.sys
you should probably make a copy of these if you are...
I set a global hook using SetWindowsHookEx, and my proc is in a dll and all that. It works, except I only get certain messages for the window i want. i get some messages (which i can't remember...
when you create your window, use
CreateWindowEx()
The first argument should be something like WS_EX_TOOLWINDOW or something like that. you'll have to look it up, but i believe it's something like...
try something like this:
int nInts;
while(scanned=1) {
if(fscanf(file, "%d\n", &size)==1) //return value returns how many fields were scanned and stored.
{nInts++;} else
{scanned=0;}
}