Hi
I have remote debugging setup on my debugging computer and the target computer. The debugging computer has VC2005 installed, and I run my code from here. The target computer is where I wanna run my code at. I mapped C and D drive in my debugging computer to the target computer..so from target computer i can see C and D Drive of the debugging computer.

I remote debugged an MFC application, and it ran fine..however, I tried to run this win32console application, it doesn't run. I even tried remote debugging with a simple HelloWorld win32console, but it doesn't work. So I went to the target computer, and run HelloWorld.exe that's compiled in Debug setting from there, it doesn't start up. The error says "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem". However, if I compile HelloWorld in Release, I can run it (basically double clicking the HelloWorld.exe) from the remote computer. What should I do to be able to remote debug a win32console application ?

Thanks


here's my helloworld program, in case u wanna make sure I didn't do anything wrong

#include "stdafx.h"

int main(int argc, char* argv[])
{
int n;
printf("Hello\n");
scanf("%d",&n);
return 0;
}