Hi There,
I would like to wrap the DarkGDK functions into a .NET dll using the .NET extensions for C++. My goal is to create an OO framework around GDK and expose it via .NET for my use. I have done work like this in the past so I'm hoping to do the same here. Right now I'm having a linker issue I was hoping someone could help me with. Here is the error:
2>core.lib(DBDLLCore.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
Here is my simple object I created to test compilation:
//Header
#pragma once
using namespace System;
namespace TVR
{
namespace Engine
{
public ref class Engine
{
public:
Engine(HWND hwnd);
Engine();
Render();
};
}
}
//.cpp file
#include <windows.h>
#include "DarkSDK.h"
#include "Engine.h"
namespace TVR
{
namespace Engine
{
Engine::Engine()
{
}
Engine::Engine(HWND hwnd)
{
}
Engine::Render()
{
dbSync();
}
}
}
I'm assuming DarkGDK defines an entry point somewhere that is conflicting with my DLLs entry point? I was hoping someone might have an idea about how to fix this.