Results 1 to 8 of 8

Thread: [RESOLVED] I can't find the setting

  1. #1

    Thread Starter
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Resolved [RESOLVED] I can't find the setting

    Hi, i am having trouble with direct x because i use winxp 64. I have discovered through research that i need to tell my compiler to compile for 32-bit. I can not find the setting. I use visual c# 2005 express edition. And if you know how to do it in vb i would appreciate it as well
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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

    Re: I can't find the setting

    The Express editions don't have a 64-bit compiler so you're already compiling your projects for a 32-bit platform.
    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
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: I can't find the setting

    How can we say that the compiler is 32, 64 bit.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

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

    Re: I can't find the setting

    Quote Originally Posted by eranga262154
    How can we say that the compiler is 32, 64 bit.
    In the Express editions you can't. In VS it is not surprisingly set on the Compile page of the project properties.
    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
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: I can't find the setting

    Thanks, I got the point.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  6. #6

    Thread Starter
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: I can't find the setting

    OK I solved it. I found an answer on the visual studio issues on the microsoft web site. Turns out that the button which is there in regular edition is removed in express editions. You have to manually edit the project file and add a line to it telling it to compile for x86. If you don't the project contains both 64 and 32 bit code and add-ins such as directx only support 32 bit. So when i ran the project in my debugger (on a 64-bit platform) it expected directx to be 64 bit as well. Interestingly it gave me an error telling me directx was not a valid win32 application when in fact the calling program wasn't. This is resolved.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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

    Re: [RESOLVED] I can't find the setting

    That's interesting. The default in VS is "Any CPU", so I guess that that would produce an assembly containing code to support both 32- and 64-bit platforms. I guess that the Express editions compile this way too, so where MSDN says they don't support 64-bit compilation it means they don't support compiling specifically for a 64-bit platform. Compiling to support 64-bit platforms in a 32-bit assembly is presumably something different. I've learned something, although I still couldn't explain the details.
    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

  8. #8

    Thread Starter
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [RESOLVED] I can't find the setting

    except i was doing the opposite: compiling to support 32 bit in a 64-bit environment.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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