CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2004
    Location
    Pakistan(Skardu)
    Posts
    64

    Question Run VB.Net application on both 32 nad 64 bit

    Hi,

    I developed an application that i compiled and run on 32 bit..but I wish to rum my application both 32 and 64 bit..can it is possible ..
    when i change platform x64 from solution project property then it does not run on 32 bit and if i select any CPU then it run 32 bit but not 64 bit...

    thanks

    From
    Adnanio Brzzzzz

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Run VB.Net application on both 32 nad 64 bit

    All 32 bit programs will run on a 64 bit system, but you can obviously only compile (as well as run) apps on a 64 bit platform.

    If you can't have over 4gb in your pc, why write software that addresses 8gb?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Dec 2004
    Location
    Pakistan(Skardu)
    Posts
    64

    Re: Run VB.Net application on both 32 nad 64 bit

    Hi,
    Your first point is confusing me because it’s not necessary that all 32 bit apps run on 64 bit and about your 2nd point my application have not any storage limitation

  4. #4
    Join Date
    May 2004
    Location
    Osijek
    Posts
    61

    Re: Run VB.Net application on both 32 nad 64 bit

    Quote Originally Posted by kku View Post
    I developed an application that i compiled and run on 32 bit..but I wish to rum my application both 32 and 64 bit..can it is possible ..
    when i change platform x64 from solution project property then it does not run on 32 bit and if i select any CPU then it run 32 bit but not 64 bit...
    Just put target platform as any and it will run as 32-bit on 32-bit systems and as 64-bit on 64-bit system. .NET code is not a problem but take care to check all interop since you may have problems with it when porting.

  5. #5
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Run VB.Net application on both 32 nad 64 bit

    Quote Originally Posted by kku View Post
    Hi,
    Your first point is confusing me because it’s not necessary that all 32 bit apps run on 64 bit and about your 2nd point my application have not any storage limitation
    By default, ANY Windows Compliant User Mode Application wil run as a 32 bit process on any of the 64 bit editions of windows.

    What dglienna was referring to is that a 32 bit process (on either a 32 or 64 bit platform) has a limited address space of either 2GB or 3GB, this does not apply to 64 bit processes.

    Note that 64 bit processes tend to be bigger and run slower than their 32 bit counterparts. Consider that every reference takes twice as much memory (and therefore only half as many can possibly fit in the processor cache.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

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

Featured