Excellent, thanks a lot.
Type: Posts; User: b00l34n
Excellent, thanks a lot.
I need a function that will return the current state of the left mouse button.
The obvious answer would be to have a static boolean variable that changes according to WM_LBUTTONDOWN/UP messages....
Hello everybody.
I am currently exploring the idea of making a game, I've always liked RTS games so this seems like a suitable candidate. However, I have no knowledge of how games are made etc... I...
Thank you very much.
sorry, I must have not explained the problem good enough.
with that code, when I use the backspace, the text doesn't get erased untill I try to highlight it. basically, the edit control is not...
ha ha, sorry I only just realised I forgot to attach the file.. I must have one heck of a short memory :D
here it is: (please remove txt extension, it wouldn't allow me to attach a zip)
I have attatched a small sample program source code that has the same problem. Hopefully after seeing the problem first hand you will know how to fix it.
I have found out the problem line, it is...
Hello, I have an edit control on my dialog, I have handled WM_CTLCOLOREDIT to change the edit control's color. However, I have just noticed a bug, when highlighting the text/erasing it, it doesn't...
Excellent, Thank you very much.
I did see the I_IMAGENONE flag on msdn, but I was hoping there was a way that worked on 98 too.
once again, Thank you.
Hello, I want to mimic a menu on my window using a toolbar, the main problem I'm having is the size issues. Whenever I create a toolbar it seems to always leave space for a bitmap, even if I don't...
Thanks Salem. If when I declare iData, I do char iData[1000] = ""; It solves the problem.
Thank you for your explanation.
But what confuses me is where has that other data come from. I'm not using the same buffer or socket. where is that data coming from?
Hello, I've made a simple program that connects to an IRC server. I'm now working on the ident server bit, that listens on port 113. I've come across something rather strange though.
I have two...
I'm struggling with this. I'm using type BITMAP.
And I don't know how to get:
//Size of bitmap to blit
DWORD dwSize=Bitmap.ImageSize;
or
//Buffer pointers for screen and bitmap
Oh right thanks, I wasn't sure, I thought maybe there was something I was missing. Thanks for the help bubba
is BMPBitmap a typo?
I've never seen that type before, and msdn has nothing about it either. Also, where is 'Bitmap' and 'Screen' declared?
ok... How do I 'create a mask of alpha values'?
I'm sorry, I'm new to the graphics scene.
I did have one idea, which was that, if I set all the pixels that I don't want drawn to somthing like pink,...
I've just read that alpha blending is just combining two colors to make a blended color, therefore giving the effect of transparency. But what I want to do is only make certain pixels of a bitmap...
When I said online, I meant multiplayer. All players will connect to a central server. The central server will simply send the card values and a few other things. The clients will do most of the work.
Which is easier to learn, OpenGL or DirectX?
Because I don't want to have to put back this project a month or two in order to learn either.
Hello, I'm thinking of making an online poker game, it will have simple 2d graphics. I have never made a game before, and I don't know any opengl/directx stuff only pure win32. Do you think it is...
Just figured it out, It's giving me the remote port, not local. Is it possible to get the local port at which a connection is established?
I usualy get a random number above 3000, If the first random number is 3980 the next will be 3981, and so on, no matter which port it is.
Strange, It's now working because I took out a piece of unrelated code. Is there anyway to get the port back from a socket?
I tried:
sockaddr_in test;
SOCKET sock =...
Ok, so I got it semi-working. If I only call WSAAsyncSelect() once, it's fine. But if I try to call it again for another socket, it fails. why can this be?