Click here to Skip to main content
15,904,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hiding a data file from users Pin
Hamid_RT5-May-06 19:22
Hamid_RT5-May-06 19:22 
GeneralRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 19:29
Maxwell Chen5-May-06 19:29 
GeneralRe: Hiding a data file from users Pin
Hamid_RT5-May-06 19:40
Hamid_RT5-May-06 19:40 
GeneralRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 20:00
Maxwell Chen5-May-06 20:00 
GeneralRe: Hiding a data file from users Pin
Hamid_RT5-May-06 20:12
Hamid_RT5-May-06 20:12 
GeneralRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 20:16
Maxwell Chen5-May-06 20:16 
AnswerRe: Hiding a data file from users Pin
led mike5-May-06 20:55
led mike5-May-06 20:55 
GeneralRe: Hiding a data file from users Pin
Phil C5-May-06 21:43
Phil C5-May-06 21:43 
After reading all this, I think you should:

A) Just make the File Read-Only after your program closes it. This will keep a casual user from accidently damaging editing it. If they actually reset the read-only flag and then edit it, then they are determined and sophisticated enough that they can damage anything if they want to.

B) Make a backup copy of the file when you close your program. Put it in the Windows/System folder or somewhere similar. Yes, this will take up an additional 800 MB of extra data, but if you're worried about data integrity and safety there really is no substitute for making a backup and HD space is cheap. When your program starts back up, check the data file against the copy, if you see any differences then you know someones been messing with it and can take action.

I never cared much for trying to use Hidden files. I tried it a couple times in the past, and inevitably got a tech support call later and when I needed them to go look for, find and tell me something about that hidden file I had a heck of a time explaining to them how to "unhide" that file. (imagine a 5 second question over the phone "You're out of disk space? What's the size of the MYDATA.DAT file?" becoming a 30 minute long lesson in Windows File attributes and how to change them)

Good luck, don't forget...KISS.
GeneralRe: Hiding a data file from users Pin
chasetoys5-May-06 22:19
chasetoys5-May-06 22:19 
AnswerRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 22:30
Maxwell Chen5-May-06 22:30 
GeneralRe: Hiding a data file from users Pin
Phil C6-May-06 6:45
Phil C6-May-06 6:45 
AnswerRe: Hiding a data file from users Pin
cmk6-May-06 7:45
cmk6-May-06 7:45 
QuestionGraphical Popup Dialog Pin
Mani.M5-May-06 8:08
Mani.M5-May-06 8:08 
AnswerRe: Graphical Popup Dialog Pin
Cedric Moonen5-May-06 8:31
Cedric Moonen5-May-06 8:31 
QuestionBits of a Bitmap Pin
torNAdE5-May-06 6:51
torNAdE5-May-06 6:51 
AnswerRe: Bits of a Bitmap Pin
Chris Losinger5-May-06 8:20
professionalChris Losinger5-May-06 8:20 
AnswerRe: Bits of a Bitmap Pin
Hamid_RT5-May-06 21:04
Hamid_RT5-May-06 21:04 
QuestionLinker Error_ URGENT Pin
ThiagoFragoso5-May-06 6:23
ThiagoFragoso5-May-06 6:23 
AnswerRe: Linker Error_ URGENT Pin
led mike5-May-06 6:27
led mike5-May-06 6:27 
GeneralRe: Linker Error_ URGENT Pin
ThiagoFragoso5-May-06 6:58
ThiagoFragoso5-May-06 6:58 
GeneralRe: Linker Error_ URGENT Pin
led mike5-May-06 8:05
led mike5-May-06 8:05 
GeneralRe: Linker Error_ URGENT Pin
David Crow5-May-06 8:18
David Crow5-May-06 8:18 
GeneralRe: Linker Error_ URGENT Pin
Jörgen Sigvardsson5-May-06 10:58
Jörgen Sigvardsson5-May-06 10:58 
AnswerRe: Linker Error_ URGENT Pin
Michał Zalewski5-May-06 6:54
Michał Zalewski5-May-06 6:54 
GeneralRe: Linker Error_ URGENT Pin
ThiagoFragoso5-May-06 10:22
ThiagoFragoso5-May-06 10:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.