Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

[Question] .NET enforcing 64bit and 32bit builds

  • 14-01-2010 11:01am
    #1
    Registered Users, Registered Users 2 Posts: 1,712 ✭✭✭


    Hi Guys,

    I was wondering, currently we are working on both 32bit and 64 bit applications with 10s of dlls which could be updated on a daily/weekly basis on client sites. We are using 64bit server apps with 32bit client apps.

    I was wondering if there was anyway of enforcing a certain app/dll could only be built, say in 64 bit mode?

    Thanks
    NEil


Comments

  • Registered Users, Registered Users 2 Posts: 2,082 ✭✭✭Tobias Greeshman


    What dot net language are you talking about here?

    If you mean c# then you can kind of get a solution going with the precompiler features available. You'll also need to change you're build scripts, etc to pass in the flag if on a 64-bit platform. Unfortunately the C# precompiler is very limited and doesn't posses the same flexibility that the C/C++ one does.
        // ...
    #if !_WIN64
    #error This application can only be built on 64-bit systems
    #endif
       // ...
    

    So with this solution the build would fail on a 32-bit system.


Advertisement