user29463846
user29463846

Reputation: 51

How to compile an ATL proxy/stub DLL for ARM64

I'm attempting to compile an ATL proxy/stub DLL for ARM64, but it isn't working.

I don't have any specific code to provide, since I'm really just trying to compile the basic template-produced project in Visual Studio. But here are the steps to reproduce:

  1. Create a new ATL project (without merging the proxy and stub). This should create a main ATL project and a separate proxy/stub project.
  2. Add a new "ATL Simple Object" to the main ATL project.
  3. Delete the pre-build event from the proxy/stub project, and move the .def file from the main project folder to the proxy/stub project folder (these steps just solve some unrelated build problems from the template-produced ATL projects).
  4. Try to compile the two projects for the ARM64 platform.

The main ATL project will compile, but the proxy/stub project will fail. (Both will compile successfully, however, for x64.)

Specifically, in the dlldata.c file inside the proxy/stub project, it appears that the macros aren't being properly defined in the rpcproxy.h header, because that header doesn't conditionally compile for ARM64.

For what it's worth, I have the C++ ATL build tools for ARM64 installed in the Visual Studio installer.

enter image description here

Can anyone provide any thoughts? Thank you very much for any guidance.

Upvotes: 0

Views: 42

Answers (0)

Related Questions