i want to use system() to invoke some (dos) application in my VC++ (MFC) program.
i do not want the dos window to appear, a friend told me use system in the following way:
sprintf (command, "open_C45 -f %s > tmpC45tree", (LPCTSTR)fname);
but it does not work, the dos window still appears. any one knows how to do that?
another problem is:
dose the dos application must exist in my current directory? say my .dsw file is "D:\\sp\\a\\prog.dsw",
then must the application (open_C45 mentioned above) also in the same directory as my project workspace?
pls help me as i need to demo to my supervisor soon.
ur help is really greately appreciated!!!