Build an x64 DLL with Visual Studio

  c++, visual-studio

I’m trying to build my dll file as x64, here are the configurations I have done on VisualStudio:

  • I have set solution and project platform to x64:

3

  • According to this answer, I have changed naming convention from __cdecl to __fastcall:

1

  • According to this comment I have added the argument _WIN64 to Preprocessor Definitions.

2

But still, when I rebuild my project and open my dll file using notepad, I see PE L which means my dll file is 32 bit.

What should I do?

Source: Windows Questions C++

LEAVE A COMMENT