The following works fine in Windows XP:
bret = CreateProcess(null,"C:\\WQA\\WQA updating\\wqafinder.exe"C,null,null,false,CREATE_NO_WINDOW,null,null,si,pi)
But in Windows 7 it fails. GetLastError() indicates error 193, "%1 is not a valid Win32 application". I am using Intel Visual Fortran Composer XE 2013 with Win32 configuration set for both the program containing the above line, and the target program (wqafinder.exe). Please can someone throw some light on what's wrong?
Many thanks in advance,