- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 5
- Posts with Downvotes
- 3
- Downvoting Members
- 3
19 Posted Topics
You can use "atoi" to convert a string to int and "itoa" to convert it from int to string, or the other way around xD. Look for it on MSDN
Hello, I've got a question about the IOCP Thread pooling. How do I create such pools? Do I need to create some threads (I know about the 2*CPU rule) with the same function? Anyone care to explain me some? I'm new to IOCP, I already have some experience in Network …
This is just an .INI file, like wildgoose said. This is used for storing settings of the game you are playing
Hello, I'm programming an little MMORPG for getting experience in Game Programming. I need a 2D Camera thing for this game to expand it a lot, since an MMORPG is not only on the same map. I know the trick of just moving everything to the left or the right …
You need to set your project properties, assuming you use VC++. Press ALT+7, Click on Configuration Properties, go to C/C++ -> Code Generation. There is an option called Runtime Library, you should set it to Multi threaded. Be aware that you executable size increases with like 300kb. ~Pyno
Hello, I've got a pretty much burning question here. Its about BitBlt. I have a window that functions as a button but I wanted to do some markup on it. So I the added BS_OWNERDRAW style to the button, and wanted to BitBlt an image on it. I tried it …
Hello, I wrote a 2D game with some simple Collision Detection. I used the function IntersectRect() but I think it's slow. This is the code right now: int Collision(CHARACTER* object1, CHARACTER* object2) { D3DXVECTOR3 pos1 = object1->GetPosition(); D3DXVECTOR3 pos2 = object2->GetPosition(); RECT a, b, *des; a.left = pos1.x; a.right = …
Hello, I'm programming this patcher for my upcoming 2D Game, called Argyus Online. When I compile the patcher it works on my computer but when I execute it to my moms laptop, it give me some error. I can't translate it to english but I think its something with the …
Hello, I created a fully working progress bar for my 2D Game patcher. I have a question, Is it possible to have an Image painted on the progress bar? I know its possible in VB but I wanna try it in C++. I could find any results using Google. Thanks!
Well, I don't know if it fixes your error but: [code=C++] char user[6], pass[6], username[6], passwrd[6], KazzyB; [/code] You declare KazzyB as a char, and pass is an char with a array of 6. [code=C++] if (pass = KazzyB) else if (pass != KazzyB) etc.. [/code] You are comparing an …
My program keeps crashing when not in debugging mode. So now i'm debugging manually, or well, log everything to find where it is crashing [code=C++] Oldproc = (PROC)SetWindowLong(Childs[1], GWL_WNDPROC, (DWORD)EditProc); cout << "Oldproc\n"; SetFocus(MainWnd); cout << "SetFocus() Done\n"; cout << "DIRECTX:\n"; DirectX = new DIRECTX(); // Creating DirectX cout << …
I don't understand that code, put it between code syntax plox.
I'm programming my own game at the moment, its connecting to a server and the server sends some spawn info and eventual other players who are connected. When a player moves, and an other player is also connected, the client of Player2 crashes. I don't know what is causing this, …
I had the same, but in DirectX. In DirectX I can't seem to get the image scaled that it matches the RECT it uses. First try to get a bigger RECT, increase it if its too small and decrease when too big. (I don't know IF one uses RECT's with …
[URL="http://i41.tinypic.com/n2ef5k.jpg"]Screenshot.[/URL] Hello, I have a problem already for like a week and I seriously can't get out of it. Take a look at the screen shot. The server sends a packet to the client to spawn an NPC. If you look to the top commandline-window, the client does recv the …
Really nice, thank you! I'm programming a simple server for a game of mine and I use it to get arguments from headers :3.
The End.
Pynolathgeen