This method can definitly not be applied as I do not have the rights and there is no way I can convince the team leader to re-target the more than 200 projects splitted in tenth of solutions to framwork 4.
And as the first laptop has the same configuration than the second on wich things do not compile there must be a way to configure the second to work as the first.
In fact this the point of my thread.
Even when the project targets a framework 2 or 3 it seems the framework 4 has a final hand on VS 2010.
Maybe the solution would be to target the laptop itself to use another framework than the 4.0 but I don't know wether is this possible or not.
Yes maybe but why does laptop1 win7 pro 32 bits works great and the same code on laptop2 win7 pro 32 bits doesn't work?
Is there a machine configuration that can do the trick?
There must be something to configure else where than in the project option.
The error on the laptop2 is raised by the framework 4 at compile time. Maybe the laptop1 doesn't use the framework 4 to compile but I do not have a clue about settings that would tell the compiler to use another framework than the 4.0.
This method does not return anything if the if-case is never true. This leads to 'not every possible scenario' is returning a string as expected. Add a return statement after 'for' ends to correct it. If nothing else, return an empty string.
Error 2 Cannot implicitly convert type 'int' to 'bool'
Your checking condition in for loop here:
for (j = 0; i = s.Length - 1; i--, j++) //Incorrect
SQL Server should be installed seperately by the user, if at all. Your application installer should ask the user for the SQL Server connection details, like servername, IP address, port, instance name, username and password to use to install/attach your database.
If the user already has SQL Server installed, they can use that, as well as putting the database on a seperate machine from the one your app is installed on.
By putting the SQL Server installation inside your own setup, you are limiting the choices the user has to install your app.
I have a program for synchronizing my computers time from the time on the Internet, but since I updated my program to Windows7 it no longer works. If I run the program by right clicking on it and running it as an Administrator it will run and change the time on my computer. Otherwise, the program runs and it does not change the time.
How do I run this program in C# as an administrator, any help will be greatly appreciated.
This is by design to make it harder for program to make suspicious changes to the system. You can modify the manifest to indicate that the application should always be run as an admnistrator (or modify the link). That way, you will have one less step to do as a regular start will start the application with administrative right. You still have to confirm that you want your application to have that priviledge.
Depending on the application, it might make more sense to check the time and only if a change is required then prompt the user. This will typically be done by using 2 exécutable files. That approch would be the one an application with auto-update would typically use.
Last Visit: 29-Oct-20 13:24 Last Update: 29-Oct-20 13:24