I am getting sick to figure out how to build a .dll to call in VBA and make possible my customized formulae. I want to make a .dll because of performance timing and so I started to study C++. As every project I've begun face issues after issues specially with the Range object to pass from VBA to my .dll.

Brief over my project: with Visual Studio 2019 I built a project with one file .cpp and another .def to EXPORT my functions.
...