Archived Forums. Visual C. Sign in to vote. Hi, I need to get the Case sensitive Filename and Path to chek if the filename described in an XML file and the file on hard drive match. BR, Thorsten. Thursday, September 11, AM. Thorsten, Your problem isn't clear to me. Linux is more case sensitive than Windows, is this a requirement? This information must be readable somewhere :- The shell System. Thursday, September 11, PM. Does it work if you call FindFirstFile with the full path as specified in your XML file; this performs a case-insensitive search for the file.
Active 1 year, 6 months ago. Viewed times. I am trying to implement a file save function for my notepad project. The file save function should be implemented like this : Click Save Menu If the texts were written on notepad never saved, print file dialog and set file path and then save. If the texts already saved may be modified , just save. If the file never saved, the path doesn't exist. Then, How to get the path of the current file? Thanks for your help. Improve this question. Anurag Dhadse 9 9 silver badges 19 19 bronze badges.
If the file is never saved, the file does not exist. If you modify a file, you already opened a file or saved a new file and therefore should know about the path — RoQuOTriX. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual. The return value for Open will be nonzero if the file was opened successfully or 0 if the specified file could not be opened. The Open member function is prototyped as follows:.
The open flags specify which permissions, such as read-only, you want for the file. The possible flag values are defined as enumerated constants within the CFile class, so they are qualified with " CFile:: " as in CFile::modeRead.
Use the CFile::modeCreate flag if you want to create the file. This example creates and opens a file.
0コメント