tal vez entendi mal lo que vos necesitas, pero bue aqui voy con mi intento:
asi te sirve?
Código (cpp) [Seleccionar]
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){
char *Buffer;
Buffer = strtok(lpCmdLine, " ");
for(int i =0; Buffer!=NULL;i++){
MessageBox(NULL, (LPCTSTR)Buffer, "", MB_OK);
Buffer = strtok(NULL, " ");
}
return 0;
}
asi te sirve?