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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. timmay3141

    Converting unit to string

    Sorry for the spamming, but I just remembered the good syntax for this. Declare the variable as uint? x; Then you can do things like x = null; x = 32;
  2. timmay3141

    Converting unit to string

    Sorry, UInt32 is a struct (C# != Java, I got confused). You need to use the Nullable<uint> type, and this can be null.
  3. timmay3141

    Converting unit to string

    For a "blank" value, you can use the Uint32 class and return null. Just use the ToString() method of Uint32 or uint to convert to a string. To convert back to a uint, use Uint32.Parse()
  4. timmay3141

    Reading XML from a file that matches a schema

    Apparently it can do everything I already wanted, it just took a couple more hours of searching (and using the right combination of words...) For anyone interested, here's all you need to do: XmlSerializer ser = new XmlSerializer(typeof(MyXmlClass)); TextReader reader = new...
  5. timmay3141

    Reading XML from a file that matches a schema

    I created an XSD schema for a data object, and I ran the Visual Studio xsd tool to generate classes based on that schema. All of that looks fine, but now I want to read the XML file which conforms to that schema and return an object of the corresponding class. I've done a lot of searching...
  6. timmay3141

    Installing Linux on a separate hard drive

    I have a relatively small hard drive with Windows on it. I want to install Linux (dual boot - I need Windows for VS.NET and games) but I don't want to run out of space, so I was thinking about buying another hard drive and installing Linux on this drive. Problem is, I don't know if I will get...
  7. timmay3141

    looking for good C++ environment

    Get the VS.NET 2005 Beta free from MSDN. It's a little buggy, but it's free, and no other IDE is even close to as good in my experience.
  8. timmay3141

    How to get IP address,username, file..etc of connected client....

    I think getpeername() can do that.
  9. timmay3141

    need help with parameter 3 of CreateThread(...)

    Well, by definition another thread will be executing more or less simultaneously with your main thread. This can lead to a conflict where the two threads are trying to access the same variables at the same time. It can also lead to some nasty debugging problems. In my particular instance I...
  10. timmay3141

    playing sounds

    Do this: ::PlaySound(_T("sound.wav"), NULL, SND_FILENAME | SND_ASYNC); If that won't cut it, use DirectX. It's not that bad.
  11. timmay3141

    Output in Dollar Format

    Just do this before cout-ing the value. cout << setiosflags(ios::showpoint | ios::fixed) << setprecision(2); You'll need to #include <iomanip>, <iostream>, and <cstdio> and get rid of your non-standard includes. The standard library files do not have .h, and the .h files do not exist in the...
  12. timmay3141

    need help with parameter 3 of CreateThread(...)

    Passing "this" to CreateThread is generally considered a very bad idea. I learned why the hard way. Find another way to accomplish what you need. The best idea is generally to make a struct that holds everything you need, dynamically allocate it in the function that creates the thread, then...
  13. timmay3141

    Capture keys

    Look up global keyboard hooks on MSDN. You'll need to write a DLL to do this, but don't worry, it's not all that difficult.
  14. timmay3141

    Output in Dollar Format

    What do you mean, can't you just cout a $ before you cout the number?
  15. timmay3141

    Button rollover issue

    I'm very new to Flash so this probably isn't all that difficult. I want to change a pushbutton so it will be brighter when my cursor is over it. I've managed to do that (I went into the library and changed fpb_over, deleted frame5, added a new symbol that was just a lighter colored square than...
  16. timmay3141

    Only numbers in the textbox

    You'll need to subclass CEdit in order to do this.
  17. timmay3141

    Problem with if and else statements

    The debugger can help you solve problems like this in a matter of minutes or seconds. If you don't know how to use it, you definitely need to learn. Here are the basics. In debug mode, run the program using F5. F9 sets breakpoints, and F5 resumes execution when it has hit a breakpoint...
  18. timmay3141

    record click and key events

    Yes you'll need to use global hooks, which means you will also need to create a DLL.
  19. timmay3141

    Problem with if and else statements

    ChipperMDW and drewdaman are both right - the problem is that the second time in the while loop you get the end of line character, which doesn't equal "add", so you go into the else part.
  20. timmay3141

    How to find a word in CString?

    Use Find in conjunction with a while loop, using one plus the index where it found the word the previous time as the new starting index.

Part and Inventory Search

Back
Top