.NET 1.1 and Vista
-
Hi, If i have to write an application only using .NET 1.1 (so obviously developing with VS.NET 2003) and i have to support the application to work fine with Vista and XP, what options are available to me? Would i be able to do it at all? There is a general known thing that VS.NET 2003 won't work fine in Vista? So how to we develop for 1.1 to support Vista? And also one other thing: Do i have to clone the application code and maintain two application binaries - one to run in XP and the other one to run in Vista? I am asking this because if the Vista supporting code would end up accessing some Vista SDK APIs, i won't be able to have that in the code and be able to compile it in XP - which will mean i will ahve to maintain two sets of code for the same application? - or am i mising something here?
-
Hi, If i have to write an application only using .NET 1.1 (so obviously developing with VS.NET 2003) and i have to support the application to work fine with Vista and XP, what options are available to me? Would i be able to do it at all? There is a general known thing that VS.NET 2003 won't work fine in Vista? So how to we develop for 1.1 to support Vista? And also one other thing: Do i have to clone the application code and maintain two application binaries - one to run in XP and the other one to run in Vista? I am asking this because if the Vista supporting code would end up accessing some Vista SDK APIs, i won't be able to have that in the code and be able to compile it in XP - which will mean i will ahve to maintain two sets of code for the same application? - or am i mising something here?
Hi! Usually you shouldn't have to use Vista SDK API functions just for your application to run under Vista as well as under XP. .NET Framework 1.1 can be installed on Vista and your app will use this framework version. If you really need to use SDK functions that exist only on one system, then usually using P/Invoke will give you the least headache. Declare your P/Invoke signatures (this will work even if the current OS doesn't have these functions), but only call the functions if you made sure that you're running on the correct OS.
Regards, mav -- Black holes are the places where God divided by 0...