Need help Urgent
-
Iam developing a dialog based application in which user has to select a file to continue for next step.There he needs to enter the file with correct extension,so i have to validate the file extensions which he has provided. he needs to enter different files in different steps. how can i validate the file extensions he has provided is correct or wrong. so that he can go for the next operation.
-
Iam developing a dialog based application in which user has to select a file to continue for next step.There he needs to enter the file with correct extension,so i have to validate the file extensions which he has provided. he needs to enter different files in different steps. how can i validate the file extensions he has provided is correct or wrong. so that he can go for the next operation.
'need help urgent' is hardly a descriptive subject. You can use the Substring method of CString to check if the file extension is what you hoped, and you can set a file selection dialog to only allow selection of existing files.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
Iam developing a dialog based application in which user has to select a file to continue for next step.There he needs to enter the file with correct extension,so i have to validate the file extensions which he has provided. he needs to enter different files in different steps. how can i validate the file extensions he has provided is correct or wrong. so that he can go for the next operation.
reddy harish wrote:
validate the file extensions
You can take the file name and check it with the files existing in the directories using FindFirstFile(),FindNextFile() API's.YOu can also check for the extension using these API's
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
Iam developing a dialog based application in which user has to select a file to continue for next step.There he needs to enter the file with correct extension,so i have to validate the file extensions which he has provided. he needs to enter different files in different steps. how can i validate the file extensions he has provided is correct or wrong. so that he can go for the next operation.
You can use
CFileDialog
_**
**_
WhiteSky