Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. .NET 1.1 and Vista

.NET 1.1 and Vista

Scheduled Pinned Locked Moved Windows API
csharpvisual-studiotutorialquestionlounge
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    code_wiz
    wrote on last edited by
    #1

    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?

    M 1 Reply Last reply
    0
    • C code_wiz

      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?

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      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...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups