Calling Windiff within my program
-
How do you call Windiff from with in a program and specify the two files that you want compared. In the help of WinDiff it tells about Invoking Windiff from the command line To compare two files Windiff path_to_first_file path_to_second_file How do i implement this? Thanks Scott
-
How do you call Windiff from with in a program and specify the two files that you want compared. In the help of WinDiff it tells about Invoking Windiff from the command line To compare two files Windiff path_to_first_file path_to_second_file How do i implement this? Thanks Scott
Use CreateProcess() and absolute paths to Windiff executable and files to compare.
-
Use CreateProcess() and absolute paths to Windiff executable and files to compare.
-
Works great, thanks The only problem is, that it doesn't like the paths passes in the command line if they have spaces. Is there a way to convert them to a DOS style with a tilda or something else? Scott
It used to work for me as well, with no problem. Check documentaion again (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/prothred\_9dpv.asp) and possibly try to use lpApplicationName only to specify path and parameters.
-
It used to work for me as well, with no problem. Check documentaion again (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/prothred\_9dpv.asp) and possibly try to use lpApplicationName only to specify path and parameters.
-
It does open up Windiff correctly but the problem is that why i send in the files to compare "C:\My Documents\test.h C:\My Documents\test2.h" it tells me that it can not open the file "C:\My" It works if the directories don't have spaces in them. Scott
I am sorry, I understood you wrong. You can convert path with spaces into its short version with this function: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/filesio\_0cyt.asp
-
I am sorry, I understood you wrong. You can convert path with spaces into its short version with this function: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/filesio\_0cyt.asp
-
I am sorry, I understood you wrong. You can convert path with spaces into its short version with this function: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/filesio\_0cyt.asp
I think it's better to just quote ("") the two paths than to re-introduce the horrible 8.3 limits again.