I'm trying to call my C++/CLI dll from a C# library. I gives me the error
unable to find an entry point named GetA
Here's my C++/CLI file:
#pragma once
//#ifdef WRAPPERAPI_EXPO RTS
//#define WRAPPER_API extern "C" __declspec(dlle xport)
//#else
//#define WRAPPER_API extern "C" __declspec(dlli mport)
//#endif
#include "windows.h"
#include "Common.h"
namespace Wrapper
{
int GetA();
int GetB();
void Preinitialize() ;
}
As you can see I have also tried with a module definition file, but it
didn't work (perhaps it is not supposed to work with C++/CLI libraries?).
In dependency walker there seem to be no functions listed. I'm not sure if
it should show with a C++/CLI module...?
I know I had this project working before... :(
unable to find an entry point named GetA
Here's my C++/CLI file:
#pragma once
//#ifdef WRAPPERAPI_EXPO RTS
//#define WRAPPER_API extern "C" __declspec(dlle xport)
//#else
//#define WRAPPER_API extern "C" __declspec(dlli mport)
//#endif
#include "windows.h"
#include "Common.h"
namespace Wrapper
{
int GetA();
int GetB();
void Preinitialize() ;
}
As you can see I have also tried with a module definition file, but it
didn't work (perhaps it is not supposed to work with C++/CLI libraries?).
In dependency walker there seem to be no functions listed. I'm not sure if
it should show with a C++/CLI module...?
I know I had this project working before... :(
Comment