No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
Hello, I'm having a problem receiving information with Winsock. I have 2 programs written, one is a server capable of accepting sockets from multiple users, and the other is a simple one socket client. The server uses an array of a user defined data type with a boolean variable and … | |
I'm a bit confused on how the precompiled header system works. I'm using Visual Studio 2005 and when trying to include multiple .cpp files in a project, they each, on compile, give me an unexpected end of file error. I have them all set to precompile a header, stdafx.h, and … | |
Re: You can create multiple constructors via method overloading. Each function/method that you create has something called a method signature. [code]void myMethod(int j);[/code] That is an example of a method signature, your compiler reads it as "void myMethod(int)". If you would like to overload this method and create another method with … | |
Okay, I'm learning how to load a WAV file into DirectSound in order to play it. I've successfully surfed through the headers of the WAV file, and loaded it. However, when I go to create a buffer with this WAV sound data I've run into a road block. I'm getting … | |
Re: Some characters do not get saved to a MySQL database, due to the way MySQL handles information. If your string you're inputting into a text or varchar field includes one of these symbols, ' for example, none of your information will be placed into the database. You can solve this … | |
Hey there, I'm having a problem with the WAVEFORMATEX format, and setting my primary buffer's format. My code is below: [code] void ErrorBox(string strMessage) { MessageBox(NULL, strMessage.c_str(), "Error", MB_OK | MB_ICONEXCLAMATION); return; } bool DSPlayer::SetPrimaryBuffer() { if (lpDS == NULL) { ErrorBox("Direct sound not initialized."); return false; } ZeroMemory(&dsBufferDesc, sizeof(DSBUFFERDESC)); … | |
I'm using windows sockets 2, and I've been able to write a server using a client array of sockets to hold more than 1 client at a time. All of this is fine and dandy, I can have multiple clients from the local machine connect to 127.0.0.1 without a problem. … | |
I'm currently writing a game in DirectX without using the MFC structure. I am manually crating the window by including windows.h and manually creating the window by using windows functions. I am a bit confused when it comes to using strings. I would like to use the CString class, as … | |
Okay, I'm able to set my color key to black easily enough, but I'm having trouble setting it to purple. [CODE] COLORREF colorkey = RGB(180, 0, 180); if (colorkey != -1) { ddck.dwColorSpaceLowValue = colorkey; ddck.dwColorSpaceHighValue = colorkey; pdds->SetColorKey(DDCKEY_SRCBLT, &ddck); } [/CODE] RGB(180, 0, 180) is the purple color I'd … |
The End.