• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 566
  • Last Modified:

how to create 64bit dll

Does anyone have any information how to create a non MFC 64 bit dll, Any difference from 32 bit dl creation?
0
tommym121
Asked:
tommym121
  • 4
1 Solution
 
theKashyapCommented:
What compiler are you using? Usually you pass the arch related params to the compiler and linker. Also usually compilers come with standard set of supported architectures which support short hand options.
E.g. -m64 is the option to use for GCC. And some other compiler (don't remember) has Win64.
0
 
trinitrotolueneCommented:
You must use the x64 compiler to generate your dll for 64 bit. Also the config settings differ when you set up your project and ofcourse if your dll depends on other 64bit dlls remember to set the path to these as well.

Also for a generic walkthrough you can always refer MSDN

http://msdn.microsoft.com/en-us/library/ms235636%28v=VS.100%29.aspx


Also you need to be aware of folder redirection. On a 64bit OS folder redirection is enabled by default
0
 
trinitrotolueneCommented:
however a 32bit dll can run on x64 versions of the OS. You don't need a 64bit dll. Just wanted to mention this. This is where folder redirection comes in since a 32 bit dll will only call 32 bit versions of other dlls. So if there's a call to any Windows dll like say advapi Windows will redirect the call to the 32 bit version and not the 64 bit version.

So do not turn off folder redirection if you use a 32 bit dll.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now