Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: Mr Violent
Forum: C++ Nov 19th, 2006
Replies: 2
Views: 1,801
Posted By Mr Violent
Yeah, I tried turning off precompiled headers but its still giving me problems. I've recently tried using Dev-C++ and it's much easier to work in than VC++.
Forum: C++ Nov 19th, 2006
Replies: 2
Views: 4,839
Posted By Mr Violent
You can create multiple constructors via method overloading.

Each function/method that you create has something called a method signature.

void myMethod(int j);

That is an example of a...
Forum: C++ Nov 19th, 2006
Replies: 2
Views: 1,801
Posted By Mr Violent
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...
Forum: C Jul 27th, 2006
Replies: 1
Views: 6,556
Posted By Mr Violent
Forum: C Jul 19th, 2006
Replies: 1
Views: 6,556
Posted By Mr Violent
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...
Forum: PHP Jul 19th, 2006
Replies: 2
Views: 3,092
Posted By Mr Violent
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...
Forum: C Jul 11th, 2006
Replies: 0
Views: 2,650
Posted By Mr Violent
Hey there, I'm having a problem with the WAVEFORMATEX format, and setting my primary buffer's format. My code is below:


void ErrorBox(string strMessage) {
MessageBox(NULL, strMessage.c_str(),...
Forum: C++ May 22nd, 2006
Replies: 13
Views: 10,615
Posted By Mr Violent
I didn't really solve the problem. I haven't found a good solution to this, although putting a slight delay on your sending function does seem to help--this is dependant on the speed of the program...
Forum: C++ May 5th, 2006
Replies: 13
Views: 10,615
Posted By Mr Violent
That's not a bad idea at all--sending the EOL termination character and completely ignore the fact that packets may stack. However, I used a 1ms sleep on my client that was sending data to my...
Forum: C++ May 4th, 2006
Replies: 13
Views: 10,615
Posted By Mr Violent
No luck.

Sending loop:

FD_SET setWrite;
FD_ZERO(&setWrite);
FD_SET(m_socket, &setWrite);
int n = m_socket + 1;
if (select(n, 0, &setWrite, 0, 0) != SOCKET_ERROR) {...
Forum: C++ May 2nd, 2006
Replies: 13
Views: 10,615
Posted By Mr Violent
I've tried using a manual timer delay with GetTickCount(), and I've also tried using select(). When I make a loop and only check incoming data after 1ms (using GetTickCount()) I just get a big chunk...
Forum: C++ Apr 30th, 2006
Replies: 13
Views: 10,615
Posted By Mr Violent
Alright. I find it kind-of unreliable to base my receiving loop on a 1ms timer, I figured the winsock method would have something more..solid. I'll try it, thanks!

Also, do you know anything...
Forum: C++ Apr 28th, 2006
Replies: 13
Views: 10,615
Posted By Mr Violent
So you think giving my program a 1 ms delay will correct this issue indefinitely? Hmm, thanks for the feedback. Is there some function that actually checks the socket if it is ready to receive new...
Forum: C++ Apr 28th, 2006
Replies: 13
Views: 10,615
Posted By Mr Violent
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...
Forum: C++ Mar 17th, 2006
Replies: 2
Views: 2,093
Posted By Mr Violent
I found my problem. Apparently when you set the server's service IP to 127.0.0.1, it only accepts connections from that address. By setting it to INADDR_ANY it accepts any connection. Thanks for...
Forum: C++ Mar 17th, 2006
Replies: 2
Views: 2,093
Posted By Mr Violent
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...
Forum: C++ Apr 10th, 2005
Replies: 8
Views: 40,602
Posted By Mr Violent
Insulting? No, I did not intend on insulting anyone. Thanks anyway means the exact solution I was looking for was not provided, but some help was. So, since I didn't crown you, you think I'm...
Forum: C++ Apr 6th, 2005
Replies: 8
Views: 40,602
Posted By Mr Violent
No need to get snappy, I said I couldn't find proper documentation (spent a good 2 hours looking) and could only find documentation on the CString class, and not just the String class, where the...
Forum: C++ Mar 31st, 2005
Replies: 0
Views: 2,180
Posted By Mr Violent
Okay, I'm able to set my color key to black easily enough, but I'm having trouble setting it to purple.


COLORREF colorkey = RGB(180, 0, 180);

if (colorkey != -1) {
ddck.dwColorSpaceLowValue...
Forum: C++ Mar 27th, 2005
Replies: 8
Views: 40,602
Posted By Mr Violent
Think I got it now. With a little more digging up, it looks like myString.c_str() returns a c-string character array, which is exactly what functions like this require. Thanks for all the help...
Forum: C++ Mar 26th, 2005
Replies: 8
Views: 40,602
Posted By Mr Violent
I have actually tried using the common <string>. However, I have been having problems with conversions...let me further explain my problem.

I am trying to get the directory path using...
Forum: C++ Mar 26th, 2005
Replies: 8
Views: 40,602
Posted By Mr Violent
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...
Showing results 1 to 22 of 22

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC