Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows
Dear All,
I have created exe file in vs2008 with Windows XP,but its not working in windows7
Posted 9-Jan-13 1:28am
Comments
Richard MacCutchan at 9-Jan-13 7:37am
   
Sorry, but my crystal ball has gone all cloudy so I cannot see what is happening!
 
Please think about your problem, explain exactly what your program is doing and what results you are seeing. If you are not seeing any results then use your debugger to diagnose where it is going wrong.
Sergey Alexandrovich Kryukov at 9-Jan-13 10:40am
   
You are right, but there is one most typical reason which covers most of the developer's mistakes manifested by Windows 7. Please see my answer.
—SA
ryanb31 at 9-Jan-13 8:30am
   
Why isn't it working in windows7?
Sergey Alexandrovich Kryukov at 9-Jan-13 10:40am
   
Who knows, but there is one most typical reason which covers most of the developer's mistakes manifested by Windows 7. Please see my answer.
—SA
Sandeep Mewara at 9-Jan-13 8:52am
   
Please elaborate.
Sergey Alexandrovich Kryukov at 9-Jan-13 10:41am
   
There is one most typical reason which covers most of the developer's mistakes manifested by Windows 7. Please see my answer.
—SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

One of the most typical reasons is the protection of the file system.
 
People often use some illegal file path names. Strictly speaking, such applications are incorrect in first place, but XP is tolerant to such mistakes, but Windows 7 is strict.
 
You can of cause recommend the users to provide proper access rights for the directories you use, and everything will work, but this is not a solution. Basically, there are no situations where any hard-coded file path can be useful. You need to calculate those paths based on system configuration or application location. I provided full information in my past answers:
 
Entry assembly: How to find my programs directory[^],
"special folders", working directories: How to find my programs directory[^].
 
—SA
  Permalink  
Comments
Marcus Kramer at 9-Jan-13 10:52am
   
+5. Logical.
Sergey Alexandrovich Kryukov at 9-Jan-13 11:38am
   
Thank you, Marcus.
—SA
jibesh at 9-Jan-13 19:36pm
   
I agreed but there can be thousands of other reasons too.Also agreed OP didnt give any other clue about his problem so.I am 50-50 with this solution. not convinced yet. well wait for OPs reaction for others question.
 
If the above solution solved his problem then I would say you read starters mind.
Sergey Alexandrovich Kryukov at 9-Jan-13 19:40pm
   
That's true, but most of CodeProject experience around the inquirers' complains "not working on Windows 7" is reduced to this single reason. You don't have to be convinced: this is the most fruitful attempt to address this problem so far, which should be checked anyway, even if there are other problems. Isn't that fair enough?
—SA
jibesh at 9-Jan-13 19:47pm
   
"but most of CodeProject experience around the inquirers' complains "not working on Windows 7" is reduced to this single reason."
If this was the case then its fair enough.
Sergey Alexandrovich Kryukov at 9-Jan-13 19:50pm
   
I believe this is the case. Even it it was second usual reason, it would be a must to check it.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 337
1 DamithSL 305
2 ridoy 264
3 OriginalGriff 208
4 George Jonsson 140
0 OriginalGriff 7,968
1 DamithSL 6,179
2 Sergey Alexandrovich Kryukov 5,524
3 Maciej Los 5,438
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100