VBA do Excel, não é possível encontrar o ponto de entrada da DLL de um arquivo DLL

Estou tentando usar a capacidade do Excel VBA para acessar e usar funções de arquivos DLL.

exemplo:

Private Declare Function funcName Lib _
"<filePath\File.dll>" _
(ByRef a As Double, ByRef b As Double) As Double

Seguindo as instruções deTutorial da Mircosoft sobre como criar um arquivo DLL, leva a 3 avisos (C4273) quando tento criar o projeto, para as 3 funções declaradas:

'MathLibrary::Functions::Add': inconsistent dll linkage,
'MathLibrary::Functions::Multiply': inconsistent dll linkage,
'MathLibrary::Functions::AddMultiply': inconsistent dll linkage

Quando o VBA no Excel tenta acessar o arquivo .dll criado neste tutorial, ele produz um erro de tempo de execução (453): 'Não foi possível encontrar o ponto de entrada da DLL Adicione em "path \ file.dll".

Eu sou um novato quando se trata da linguagem C \ C ++. Passei mais de 6 horas de:

tentando fazer ajustes no tutorial de baunilhacomeçando de novopesquisando em busca de ajuda e questões semelhantesfazendo ajustes nas declarações no VBA

E ainda me sinto mais longe de uma solução.

Estou executando o Excel de 32 bits no Windows de 64 bits.

Qualquer ajuda seria muito apreciada :)

Editar

Arquivos de código (conforme solicitado):

MathLibrary.cpp

// MathLibrary.cpp : Defines the exported functions for the DLL application.
// Compile by using: cl /EHsc /DMATHLIBRARY_EXPORTS /LD MathLibrary.cpp  

#include "stdafx.h"  
#include "MathLibrary.h"  

namespace MathLibrary
{
    double Functions::Add(double a, double b)
    {
        return a + b;
    }

    double Functions::Multiply(double a, double b)
    {
        return a * b;
    }

    double Functions::AddMultiply(double a, double b)
    {
        return a + (a * b);
    }
}

MathLibrary.h

// MathLibrary.h - Contains declaration of Function class  
#pragma once  

#ifdef MATHLIBRARY_EXPORTS  
#define MATHLIBRARY_API __declspec(dllexport)   
#else  
#define MATHLIBRARY_API __declspec(dllimport)   
#endif  

namespace MathLibrary
{
    // This class is exported from the MathLibrary.dll  
    class Functions
    {
    public:
        // Returns a + b  
        static MATHLIBRARY_API double Add(double a, double b);

        // Returns a * b  
        static MATHLIBRARY_API double Multiply(double a, double b);

        // Returns a + (a * b)  
        static MATHLIBRARY_API double AddMultiply(double a, double b);
    };
}

stdafx.h

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#include "targetver.h"

#define WIN32_LEAN_AND_MEAN             // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>

// TODO: reference additional headers your program requires here

targetver.h

#pragma once

// Including SDKDDKVer.h defines the highest available Windows platform.

// If you wish to build your application for a previous Windows platform,
//     include WinSDKVer.h and
// set the _WIN32_WINNT macro to the platform you wish to support 
//     before including SDKDDKVer.h.

#include <SDKDDKVer.h>

Módulo VBA

Private Declare Function Add Lib _
"c:\<Path>\MathLibrary.dll" _
(ByRef a As Double, ByRef b As Double) As Double

Sub useAddXL()
    MsgBox Add(1, 2)
End Sub

questionAnswers(1)

yourAnswerToTheQuestion