Original Post
Ok so basically, I have a winsock program(that's not the point though, this isn't a network question) that has a master client which sends messages and all the regular clients who just recieve messages. The first command I am trying to put into my server/client is execution, like the windows cmd. The master client sends a message that starts with "start", an example would be "start notepad.exe". What I need to do is strip the string of the characters "start "(including the space), so that the only characters left would be notepad.exe. This is what I got so far, didn't work but i'm pretty sure I am using the wrong method to erase characters EDIT: I have to use a char(instead of string) because the message is used for sending bytes over a network aswell EDIT2: I have also tried using message.erase() but i get this error: request for member
for (int i = 0; i < 6; i++) START = ' '; ShellExecute(NULL, "open", message, NULL, NULL, SW_SHOW);
erase' in massage', which is of non-class type `char[1024]' [Edited by - cherryhouse on January 28, 2006 8:54:42 PM]