Native C++ dll in one solution with C# project -



Native C++ dll in one solution with C# project -

i have source file written in c++, performing simulation. create user interface in c#. how can have both c++ , c# in single visual studio solution?

what did far created .net c# project , solution, , native project dll library. have marked c# project "depends on" c++ dll. have provided necessary dllexport directives , imported using dllimport. compiles fine, when execute application, dll not found:

unable load dll 'xxxx.dll': specified module not found.

it no surprise dll not found, application run output directory , output directories different c# , c++ projects. not want write explicit path import `"..\..\debug\xxxxx.dll".

is there mutual way how construction solution containing native dll , c# app c# app can phone call native dll?

if know after deployment c++ dll in same folder c# dll (or executable), on simple way solve problem utilize postbuild event (project properties, build events).

you can add together re-create command set c++ dll c# output folder.

c# c++ visual-studio visual-studio-2012 dll

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -