Hello this is my first post and certainly a tough one for me!
I'm working on a large student project where I would like to write unmanaged code in C++ with DirectX11 then be able to call it from a Windows Form to have a nice GUI. I've done alot of scanning through the web to come up with how I can do just this. The
path I'm trying to take is as follows: Write Renderer in native C++ compile to dll, write C++/CLI wrapper for said dll then compile that to a dll which I should be able to call from C#.
I've successfully created the native dll with an extremely simple Win32 Console application that calls some DirectX; this is one project. My second project involves a single class to wrap my native dll. I've set the /clr commandline option and removed any
conflicting options. I've also setup my includes and linked libraries. This second Managed DLL compiles just fine, but it does not link. I get the following:
1>wHogsheadRenderer.obj : error LNK2028: unresolved token (0A000246) "public: bool __thiscall HogsheadRenderer::InitializeWindow(struct HWND__ *)" (?InitializeWindow@HogsheadRenderer@@$$FQAE_NPAUHWND__@@@Z) referenced in function "public: long __clrcall
wHogsheadRenderer::Initialize(struct HWND__ *)" (?Initialize@wHogsheadRenderer@@$$FQ$AAMJPAUHWND__@@@Z)
1>wHogsheadRenderer.obj : error LNK2028: unresolved token (0
View Complete Post