URGEnt:How to open an application??
-
Iam doing a MFC project for Asset Management . The requirement is that when a user selects a file ,the application corresponding to that application should open and display /play the file ... As an example ,if the file is c:\test.doc ,then MS word should be launched and should display the file .. ANother exmaple is if the file is c:\media.rm ,then the real player should be opened and should play the file .. How i do it in MFC ,or WIn 32 ???
-
Iam doing a MFC project for Asset Management . The requirement is that when a user selects a file ,the application corresponding to that application should open and display /play the file ... As an example ,if the file is c:\test.doc ,then MS word should be launched and should display the file .. ANother exmaple is if the file is c:\media.rm ,then the real player should be opened and should play the file .. How i do it in MFC ,or WIn 32 ???
check the ShellExecute() API
-
Iam doing a MFC project for Asset Management . The requirement is that when a user selects a file ,the application corresponding to that application should open and display /play the file ... As an example ,if the file is c:\test.doc ,then MS word should be launched and should display the file .. ANother exmaple is if the file is c:\media.rm ,then the real player should be opened and should play the file .. How i do it in MFC ,or WIn 32 ???
-
Iam doing a MFC project for Asset Management . The requirement is that when a user selects a file ,the application corresponding to that application should open and display /play the file ... As an example ,if the file is c:\test.doc ,then MS word should be launched and should display the file .. ANother exmaple is if the file is c:\media.rm ,then the real player should be opened and should play the file .. How i do it in MFC ,or WIn 32 ???
Hi I hope you got a path to the file you want to be opened. CString path; Call ShellExecute(NULL, "open",path, NULL, NULL, SW_SHOW); Should work
-
Iam doing a MFC project for Asset Management . The requirement is that when a user selects a file ,the application corresponding to that application should open and display /play the file ... As an example ,if the file is c:\test.doc ,then MS word should be launched and should display the file .. ANother exmaple is if the file is c:\media.rm ,then the real player should be opened and should play the file .. How i do it in MFC ,or WIn 32 ???