c++ forms in DLL

11/06/2014 21:53 cookie69#1
Hello :)
I am sorry but if this is already answered just give me the link :)
Here is my problem:
I am trying to make a DLL that uses windows forms (in c++). I managed to make the dll and it is working, the issue is that the DLL does not unload from the process when I exit the window!!

In normal c++, I just need to call FreeLibraryAndExitThread(hModule,0); to exit the thread and free the DLL from the main process, but with windows forms I don't know when to call such a function in order to exit properly...

Here is my source code, I will really appreciate your help :)
11/06/2014 22:17 snow#2
#moved
11/06/2014 23:00 cookie69#3
why is it moved to .Net section :o I am using .net forms but c++ code at the same time..it is not c#...
11/06/2014 23:22 snow#4
Your problem is related to your C++/CLI code.
11/06/2014 23:25 cookie69#5
Quote:
Originally Posted by snow View Post
Your problem is related to your C++/CLI code.
Why dont' give me an answer if you are aware of my problem!!

close please
11/10/2014 22:03 Logtetsch#6
Use C++ instead of C++/CLI.
Link 1 → [Only registered and activated users can see links. Click Here To Register...]
Link 2 → [Only registered and activated users can see links. Click Here To Register...]
Link 3 → [Only registered and activated users can see links. Click Here To Register...]