Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 04:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



c++ forms in DLL

Discussion on c++ forms in DLL within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
cookie69's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 627
Received Thanks: 688
c++ forms in DLL

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
cookie69 is offline  
Old 11/06/2014, 22:17   #2

 
snow's Avatar
 
elite*gold: 724
Join Date: Mar 2011
Posts: 10,479
Received Thanks: 3,318
Arrow <span itemprop="articleSection">C/C++</span> -> .NET Languages

#moved
snow is offline  
Old 11/06/2014, 23:00   #3
 
cookie69's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 627
Received Thanks: 688
why is it moved to .Net section I am using .net forms but c++ code at the same time..it is not c#...
cookie69 is offline  
Old 11/06/2014, 23:22   #4

 
snow's Avatar
 
elite*gold: 724
Join Date: Mar 2011
Posts: 10,479
Received Thanks: 3,318
Your problem is related to your C++/CLI code.
snow is offline  
Old 11/06/2014, 23:25   #5
 
cookie69's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 627
Received Thanks: 688
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
cookie69 is offline  
Old 11/10/2014, 22:03   #6
 
Logtetsch's Avatar
 
elite*gold: 192
Join Date: May 2009
Posts: 2,227
Received Thanks: 3,262
Use C++ instead of C++/CLI.
Link 1 →
Link 2 →
Link 3 →
Logtetsch is offline  
Reply


Similar Threads Similar Threads
[C#]SelectionSort in Forms
02/05/2014 - .NET Languages - 2 Replies
Hey Leute ich habe den algorythmus "SelectionSort" in der Console geschafft, nun brauch cih in in Forms. Ich habe aber leider nicht wirklich viel erfahrung in Forms, Ich weiß das ich ne Textbox brauche für die array ausgabe und nen button der dies startet. Code: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SelectionSort
[How-To]Instanzierung von Forms
11/23/2013 - Coding Tutorials - 55 Replies
Da ich in diesem Forum genug von sowas hab: Form2.show()(Dies geht, da VB.net eine implizite Instanz des Dialogs erstellt & Sie anzeigt (stammt aus VB6 Zeiten)) Zeig ich euch einfach mal, wie und vorallendingen wieso man eine Klasse instanzieren sollte; Warum sollte man eine Klasse instanzieren? Zu allererst, was ist eine Klasse? Eine Klasse ist der Bauplan eines Objekts, welcher bei der instanzierung mittels dem Schlüsselwort new gegründet wird (also das Objekt). Wenn wir nun ohne...
GUI/Windows-Forms in C++
04/01/2012 - C/C++ - 8 Replies
Hey Leute, ich lerne jetzt schon seit gut einem halben Jahr C++ und es klappt auch alles wunderbar und ich habe auch schon die ersten kleinen Spiele(Snake, Tetris) in der Console programmiert. Doch jetzt will ich auf GUI umsteigen, finde aber überhaupt keine guten How To's :( Kennt ihr ein gutes How to, welches sich mit Windows Forms(Visual Studio), beschäftigt?
thanatos forms
08/17/2010 - Grand Chase Philippines - 20 Replies
1st formhttp://images2.wikia.nocookie.net/__cb20100528 043435/grandchase/images/7/78/ThanatosForm1.jpg2nd formhttp://images1.wikia.nocookie.net/__cb20100528 043417/grandchase/images/2/21/ThanatosForm2.jpg3rd and final formhttp://images1.wikia.nocookie.net/__cb20100528 043254/grandchase/images/2/29/ThanatosForm3.jpg thanatos the god of damnation press thanks you like my post



All times are GMT +1. The time now is 04:39.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.