Click here to Skip to main content
15,888,401 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all....
I have a program written by somebody else.It worked in XP 32 bit , now I have Win 7 32 bit and it will start,showing the program window but not do anything else when I click the "Go" button it has. Compatability and run as administrator does not help.
Maybe somebody here can do the modifying?If so I can give you the program link and explain what it supposed to do.
Thanks!
I appreciate it!
Val
Posted

The question, as formulated, make little sense, because you did not provide any information on your application.

At the same time, you probably faced some really existing problem and can use some help. I can give you basic ideas on what you can start with. First of all, let's quickly consider the possible issue that is not related to possible incorrectness in your program, so let's consider it first, to close this part of the issue. XP is not supplied with .NET, and Windows 7 is bundled with preinstalled .NET v.3.5. You did not even report which .NET version is your application target. If you targeted it to v.4.0, 4.5 or 4.6, and it wasn't installed on Windows 7, your application should not work. This is a trivial issue, but 1) you should provide exact system requirements in your Release Notes, 2) you really, really need to specify the target version when asking such questions, 3) you may want to distribute required version of .NET with your application (you have a right to do so, .NET framework is freely redistributable).

If this is not a problem, and if your application is really targeted to x-86 32-bit (but I have no idea why; in most cases, the CPU architecture should be "AnyCPU", anyway, you did not specify it in your question), then the conclusion is not very pleasing: you don't really have an application which works correctly even on XP. If so, the sooner you admit it, the better. Any really correct application written for XP should work on Windows 7. But what is "really correct" is somewhat philosophical question. It's very likely, that such application cannot work on XP with some different configuration or even for a different user.

Why it's very likely? Because there is one of the most typical problems: permissions. Before I explain permission considerations, do a simple thing: run the application with elevated permissions. If it starts working, the problem is really permissions. If not, it still can be permissions. Please see:
https://en.wikipedia.org/wiki/User_Account_Control[^],
http://4sysops.com/archives/vista%E2%80%99s-uac-8-ways-how-to-elevate-an-application-to-run-it-with-administrator-rights[^],
http://www.sevenforums.com/tutorials/11841-run-administrator.html[^].

The typical mistakes are: wrong assumption that some file or directory is accessible or hard-coding of some file paths in your application. There are no cases when hard-coded path names can be useful. In all cases (in production-grade applications, of course), path names should be calculated during runtime based on executable directory or special directories configured per user or "for all users", from user input or some configuration files.

Another problem is exception handling. Even though exception handling should be minimized, you should not leave any unhandled exceptions. To handle them all, you need to handle them all at least on the top stack frame of each thread. Moreover, you should never leave any unhandled exceptions unnoticed. Any abnormal behavior should be reported by displaying comprehensive exception information and/or logging, perhaps optional. Unfortunately, many marketing people try to press on development team to conceal unhandled exceptions and other unsolved problems, but I would call it cheating. If you have no access to the customers' computers, you still accept problem reports from them which helps you to maintain the product.

—SA
 
Share this answer
 
Comments
val5662 20-Dec-15 0:45am    
It is not my program.
Do not have the source code.
.NET 4.5.2 is installed
Program was made in 2004 to work in XP
No idea what .NET the program requires.
Permissions and compatibility was tried b4 I posted here.
What version .NET would you recommend installing to see if that is the only problem?
Thanks!
Sergey Alexandrovich Kryukov 20-Dec-15 0:59am    
If this is no your program, what would you expect? Don't use bad programs. Write your own. Whatever...
There is no such thing as miracle. :-)

Install the latest version of .NET, to be on safe side.

—SA
Thanks to Southmountain and Sergey for giving me suggestions.
This led me to this page where the problem I had was solved.
http://helpdeskgeek.com/windows-8/install-net-framework-3-5-3-0-2-0-on-windows-8/
Have a Merry Christmas guys!
Val
 
Share this answer
 
what language do you use to write that software?

if it is written in C#, that may target to older .NET framework such as 1.1, 2.0.
so you need to put app.config file with right set up. please check out my article .NET versioning and multi-targeting on C# application and component[^]
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900