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