
December 7th, 2012, 02:16 AM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 1
Time spent in forums: 17 m 48 sec
Reputation Power: 0
|
|
|
General - Need help for win 7 compatibility
Need help for win 7 compatibility
Hi , I have this code for win xp
`char NotesDir[] = "\\Program Files\\notesw32";
char Fname[] = "C:\\Program Files\\notesw32\\notes.ini";
char Bakname[] = "C:\\Program Files\\notesw32\\notesini.bak";`
But for win 7 , these files will be present in c:\Program Files (x86) folder. How do i make sure my code works for both xp and win 7? Can anyone help me with this? Can an environment variable be used? If so, How do i use it because i have never used it and am new to c programs. Thanks in Advance.
|