Results 1 to 4 of 4

Thread: compile on WIN7 64bit

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2004
    Posts
    362

    compile on WIN7 64bit

    I'm using VB.net 2010 express, where can I find the compiler option for 64bit? or, it will compile for 32bit only? or, it should work for both 32 and 64 bit in most case?

    I'm using a 64bit component in the program, vb express reports error when I compile it, but if I use the 32bit compnent, then it is ok.

    does it mean express 2010 automatically compile to 32bit? or somewhere I should set the win7 64bit (which is what i'm using).

    just start using win7 64bit & vb express 2010, got confused.



    thanks

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: compile on WIN7 64bit

    Pulled from another site, but I can't say it any better .

    Go to the Project property setting. Select Compile tab on the left and click on the Advanced Compiler Options.. The Target CPU options that you could use, ie Any CPU, x86, x64 and Itanium

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: compile on WIN7 64bit

    From what I understand Express will compile to suit the version of Windows you are using - so as you are using win7 64bit, it will compile to 64 bit.

    I'm using a 64bit component in the program, vb express reports error when I compile it, but if I use the 32bit compnent, then it is ok.
    ...and the details of the error are?

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2004
    Posts
    362

    Re: compile on WIN7 64bit

    in vb 2010, under advanced option for compiler, it does not have any setting for "CPU" selection.

    the detailed error is:
    Error: System.BadImageFormatException: Could not load file or assembly. An attempt was made to load a program with an incorret format.

    the error shows up when I use 64bit component. if I use 32bit component, it is ok. this makes me think maybe express 2010 compile for 32bit only?

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