Hello,
I have a socket app performing recvfrom(...) on a UDP socket. The data comes across fine, but I don't get an IP address in the sockaddr struct, although I do get a port... Code:
sockaddr_in sourceAddr;
socklen_t addrLen;
recvfrom(socketfd, buffer, avail, 0, (sockaddr*)&sourceAddr...
Hello,
I'm working with part of a complex system that needs to parse XML containing foreign languages. For the time being, I just need to test sending strings with foreign characters to our graphics components.
At the moment, we're handling UTF-8 strings (as char*) instead of a true multi-byte...
Hello all,
I'm working with wide characters and need to use the wcsdup function to replace some code that was using normal characters and the strdup function.
I'm including <wchar.h> and have had no problems with the wchar_t type itself nor with wcscpy, but when I try to compile when using...
Hello all,
Not sure if this is the best place for this, but I figured it was worth a shot.
My old computer's hard drive had my entire iTunes library. That motherboard died, but I took the hard drive out and put it in an external enclosure and connected it to my new computer. It reads the hard...
I tried ControlAdded/ControlRemoved initially, but (oddly) they're not the solution. I think those only work if the ListBox becomes the Parent for some other control. It seems like the Items collection needs Added and Removed events.
Hello,
I wanted to know if there's an event available for a ListBox that gets triggered when something is added or removed from the Items collection? I've poked around with a bunch of the events but nothing seems to work. It would be pretty easy to extend the control to do this but I'd rather...
Hello,
I'm trying to executed sequence of INSERTs using a prepared command.
The code:
MySqlCommand cmd = new MySqlCommand();
cmd.Connection = myConn;
cmd.CommandText = "INSERT INTO someTable VALUES (@param)";
cmd.Prepare();
cmd.Parameters.Add("@param", MySqlDbType.Int16);
for (...)
{...
Ok... wasn't really sure where to post this.
I'm running Visual C# Express 2008 on a 32-bit processor (Core2Duo) but w/ Windows XP 64-bit since I have 4GB of RAM.
When I try to run a program that uses directX/3D, I get BadImageFormatExceptions. Is there any way to make directX compatible with...
I am having a similar problem.
Running as root on a RedHat Enterprise distribution. I run rpm -i on both the client and server packages. Then I run mysql_secure_installation. When it prompts for current password for root, I just hit enter and get:
ERROR 1045 (28000): Access denied for user...
Hello,
I am using a class whose constructor takes a parameter as follows:
Class(const OtherClass& param1)
My code is basically:
OtherClass oc = new OtherClass();
Class c = new Class(oc);
...which generates errors. How do I properly pass the OtherClass instance to this constructor?
Hello,
I have a class:
class Deck : vector<Card*>
When I try to access typical vector methods...
Card * c = new Card(...);
Deck myDeck;
myDeck.push_back(c);
I get an error: error C2247: 'std::vector<_Ty>::push_back' not accessible because 'Deck' uses 'private' to inherit from...
Hello all,
I'm trying to execute a web service in a C# windows app. Without any security provisions, it works fine. However, when we switch to declarative security, we get the following SoapException: "Server was unable to process request. -> Request for principal permission failed."
The web...
Hello,
I'm trying to dynamically populate a CheckedListBox with objects that have a string property (name) and a numeric property (id). The control populates, but displays the name of my class (testproject.Player) even though I have a ToString() method in my class.
Here's the code:
//Class...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.