Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by JediDan

  1. JediDan

    udp recvfrom() returns no IP address

    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...
  2. JediDan

    Getting foreign characters into wchar_t

    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...
  3. JediDan

    wcsdup() not defined

    It was __USE_GNU, but you got me in the right direction. Thx
  4. JediDan

    wcsdup() not defined

    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...
  5. JediDan

    Copy iTunes library off old hard drive

    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...
  6. JediDan

    Event for ListBox when Items added or removed

    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.
  7. JediDan

    Event for ListBox when Items added or removed

    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...
  8. JediDan

    Difficulty with Connector/NET and prepared statements

    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 (...) {...
  9. JediDan

    DirectX on xp64 with 32-bit processor

    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...
  10. JediDan

    re-installing mysql server 5.0-cannot log in as root!!

    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...
  11. JediDan

    Const&amp; parameter?

    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?
  12. JediDan

    Accessing methods of class which extends vector?

    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...
  13. JediDan

    Unable to execute web service with declarative security

    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...
  14. JediDan

    Populating CheckedListBox with objects

    That did it! Actually, it had to be public override ToString(), but whatever. Thanks for your help.
  15. JediDan

    Populating CheckedListBox with objects

    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...

Part and Inventory Search

Back
Top