C++ dll DEBUG mode works - RELEASE mode doesn't

C++ dll DEBUG mode works - RELEASE mode doesn't

Hi all,

I have written this C++ dll in Visual Studio 2017 community.
The dll is supposed to be called from VBA/Excel.

The debug mode dll works successfully but its size is huge.

When I compil the dll project in visual studio in release mode, the size is dramatically reduced but it doesn't work when called from vba. In fact when vba calls the exported function the whole excel application crashes!


When I open the dll in Dependency Walker, the dll exported function doesn't show up PLUS I get a bunch of errors such as :

Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

Any help would be much appreciated.

Last edited on
For a better debugging and code detection there are many programs that gives a great help like checkmarx and others but I think it is better to learn how to do it on you own.
Good luck with it.
Ben.
Topic archived. No new replies allowed.