I develop a app in C++(QT),but now a feature need .Net stuff,then I write a dll of VC++ CLR project(vs2010,.Net4.0) as a wrapper for .Net, and export only 1 function by
_declspec(dllexport) void previewDocx(const char* lp);
then the app(exe) link the lib and depend that dll.
In my local,the app runs normally.but failed in other pc.(with no vs2010 nor .Net framework installed).
I have tried to add all the dlls under "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\redist" to run directory(bin).
But when calling the code inside the .Net dll,it crashed.
BTW.
(1) the exe is redistribute by QT so there's no msi,I just want to carry some nesseary stuff (dll,the like) with the existing self-extracting. May I?
(2)Do I acquired to let the user to install .Net framework 4.0? any simple solution?
thanks in advance?