Click here to Skip to main content
15,905,144 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Getting HDD serial No in C++/CLI environment Pin
adi099016-Apr-11 0:27
adi099016-Apr-11 0:27 
QuestionUnmanged library printing to debug and then killing application Pin
coder2555-Dec-08 18:59
coder2555-Dec-08 18:59 
Questioni need client to server chat Pin
Member 39837645-Dec-08 6:35
Member 39837645-Dec-08 6:35 
AnswerRe: i need client to server chat Pin
Richard Andrew x6413-Dec-08 10:36
professionalRichard Andrew x6413-Dec-08 10:36 
QuestionFatal error C1902 Pin
Manfr3d3-Dec-08 12:51
Manfr3d3-Dec-08 12:51 
AnswerRe: Fatal error C1902 Pin
Manfr3d4-Dec-08 11:32
Manfr3d4-Dec-08 11:32 
QuestionInfragistics ultraGrid Pin
mikobi3-Dec-08 2:44
mikobi3-Dec-08 2:44 
QuestionDestroying controls created by CWinFormControl Pin
astibich230-Nov-08 11:43
astibich230-Nov-08 11:43 
I'm using CWinFormControl to create instances of .Net UserControls.

CWinFormsControl<myproject::mycontrol xmlns:myproject="#unknown"> m_control;
m_control.CreateManagedControl( WS_CHILD | WS_VISIBLE, rect, this, IDC_HOSTCONTROL );


This works fine. The problem occurs when I try to destroy the control. I need a deterministic call to the 'MyControl' finalizer, so I wrote the following:

m_control.DestroyWindow();
System::GC::Collect();

This code does not cause the Finalize\Dispose code to be called on 'MyControl'. In fact, 'MyControl' sticks around in memory until the MFC app closes. What am I doing wrong here?

Thanks,

Aaron
QuestionRe: Destroying controls created by CWinFormControl Pin
led mike1-Dec-08 5:17
led mike1-Dec-08 5:17 
Questionspace in a string ! Pin
sajjy30-Nov-08 10:19
sajjy30-Nov-08 10:19 
AnswerRe: space in a string ! Pin
Mark Salsbery30-Nov-08 14:31
Mark Salsbery30-Nov-08 14:31 
GeneralRe: space in a string ! Pin
led mike2-Dec-08 4:31
led mike2-Dec-08 4:31 
GeneralRe: space in a string ! Pin
Mark Salsbery2-Dec-08 6:16
Mark Salsbery2-Dec-08 6:16 
GeneralRe: space in a string ! Pin
led mike2-Dec-08 6:49
led mike2-Dec-08 6:49 
GeneralRe: space in a string ! Pin
Paul Conrad2-Dec-08 6:57
professionalPaul Conrad2-Dec-08 6:57 
AnswerRe: space in a string ! Pin
Paul Conrad30-Nov-08 18:00
professionalPaul Conrad30-Nov-08 18:00 
QuestionTextBox: Conversion from String to Double Pin
J_E_D_I25-Nov-08 9:31
J_E_D_I25-Nov-08 9:31 
AnswerRe: TextBox: Conversion from String to Double Pin
Mark Salsbery25-Nov-08 11:51
Mark Salsbery25-Nov-08 11:51 
GeneralRe: TextBox: Conversion from String to Double Pin
J_E_D_I26-Nov-08 2:00
J_E_D_I26-Nov-08 2:00 
GeneralRe: TextBox: Conversion from String to Double Pin
Mark Salsbery26-Nov-08 4:56
Mark Salsbery26-Nov-08 4:56 
GeneralRe: TextBox: Conversion from String to Double Pin
J_E_D_I26-Nov-08 7:57
J_E_D_I26-Nov-08 7:57 
GeneralRe: TextBox: Conversion from String to Double Pin
Mark Salsbery26-Nov-08 8:12
Mark Salsbery26-Nov-08 8:12 
GeneralRe: TextBox: Conversion from String to Double Pin
J_E_D_I26-Nov-08 8:44
J_E_D_I26-Nov-08 8:44 
GeneralRe: TextBox: Conversion from String to Double Pin
Mark Salsbery26-Nov-08 10:32
Mark Salsbery26-Nov-08 10:32 
AnswerRe: TextBox: Conversion from String to Double Pin
led mike25-Nov-08 11:52
led mike25-Nov-08 11:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.