If you already have STL string available then just create a second string - or vector as Paul suggests. Let STL take core of deleting the string for you instead of calling new[]/delete[]....
A program that accepts input must wait for the user to take action. In the case of text, the program needs to know when the user's input is complete.
...
1. create socket using "socket()", specify AF_INET for the address family, IP_PROTO for protocol (I think), and SOCK_STREAM for TCP socket (SOCK_DGRAM for UDP)
2....
First, the text file that you posted shows code for walking the DOM tree so apparently the XML data has already been parsed and loaded into the DOM tree.
Take a look at using an XML hive database. Unless you really, really need to reparse all of your XML repreatedly, you will be better off using an XML native database. The underlying DB can create...
Method like substr(int s, int e) accepts indexes but STL string methods like pointers so you can use pointers to first and last character of substring.
On Windows NT/2K/XP, the CreateFile API will allow you to open a handle on the phyisical drive using a pathname of "\\.\PHYSICALDRIVE0" for the first device, "\\.\PHYSICALDRIVE1" for the second, and...
Use CreateWindow with a window class of "button". Pass the dialog window's HWND as the parent window to the button. You will likely need to make the dialog window resizeable to accomodate a large...