Results 1 to 7 of 7

Thread: Advice needed : can an app developed in win7 64 bit run on 32 bit?

  1. #1

    Thread Starter
    Junior Member reeve_netics's Avatar
    Join Date
    Sep 2013
    Location
    India
    Posts
    18

    Lightbulb Advice needed : can an app developed in win7 64 bit run on 32 bit?

    hi
    i want to develop an app in vb.net 2010 on win7 64bit environment.
    will it be able to run in win7 32bit or win xp environments too.

    tnx in adv.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Advice needed : can an app developed in win7 64 bit run on 32 bit?

    Yes it will. If you set the target platform of the project to x86 then the app will run in 32-bit mode on both 32-bit and 64-bit Windows. If you set the target platform to Any CPU then the app will run in 32-bit mode on 32-bit Windows and 64-bit mode on 64-bit Windows. If you set the target platform to x64 then the app will only run on 64-bit Windows and it will run in 64-bit mode.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member reeve_netics's Avatar
    Join Date
    Sep 2013
    Location
    India
    Posts
    18

    Re: Advice needed : can an app developed in win7 64 bit run on 32 bit?

    tnx jmc.
    which platform u would suggest.
    1. x86,
    2. any cpu,
    3. x64.

    i want the app should run in all environment (i.e. 64, 32 (win 7/ xp)
    tnx

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Advice needed : can an app developed in win7 64 bit run on 32 bit?

    Well, you know the behaviour of the app for each option so what do you think it should be?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: Advice needed : can an app developed in win7 64 bit run on 32 bit?

    AnyCPU isn't always a good choice, though the places where it will fail are few. The one place I know it will fail is if you target an Access .mdb using the JET DB engine. There is no 64-bit JET DB engine, and if you target AnyCPU, the program will not drop back to using the 32-bit DB engine if it is running on a 64-bit system. That's the only drawback I know of, but the general pattern may hold true for other similar situations: If the program is running on a 64-bit system, it will look for 64-bit versions of resources, which may not exist (but probably do, and this particular issue only applies to using the JET DB engine against Access, which is kind of long in the tooth to begin with).
    My usual boring signature: Nothing

  6. #6

    Thread Starter
    Junior Member reeve_netics's Avatar
    Join Date
    Sep 2013
    Location
    India
    Posts
    18

    Re: Advice needed : can an app developed in win7 64 bit run on 32 bit?

    thanks shaggy. we have face the same issue of access before. that's why i want to clear my doubts on that. bcoz our clients has different os (xp, win7 64bit). and we don't want to build projects on different machines (xp, win 7 64bit).

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Advice needed : can an app developed in win7 64 bit run on 32 bit?

    Quote Originally Posted by reeve_netics View Post
    thanks shaggy. we have face the same issue of access before. that's why i want to clear my doubts on that. bcoz our clients has different os (xp, win7 64bit). and we don't want to build projects on different machines (xp, win 7 64bit).
    I must have missed where you actually stated that earlier. We can't guess what's in your head. As I specifically stated in my first reply, x86 will force 32-bit mode on all systems so of you need 32-bit mode on all systems because you need to use a 32-bit library then obviously you should target the x86 platform. If you're not using 32-bit libraries then, while x86 won't hurt, you should select Any CPU.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width