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

Managed C++/CLI

 
GeneralRe: CLI/BOOL to bool conversion. Pin
Mike Doner28-Sep-10 7:01
Mike Doner28-Sep-10 7:01 
QuestionProcessing mouse events in C# works - how do I do the same in managed C++? Pin
i_kant_spel26-Sep-10 16:09
i_kant_spel26-Sep-10 16:09 
AnswerRe: Processing mouse events in C# works - how do I do the same in managed C++? Pin
Nish Nishant27-Sep-10 11:47
sitebuilderNish Nishant27-Sep-10 11:47 
AnswerRe: Processing mouse events in C# works - how do I do the same in managed C++? Pin
Dave Doknjas27-Sep-10 18:18
Dave Doknjas27-Sep-10 18:18 
GeneralRe: Processing mouse events in C# works - how do I do the same in managed C++? Pin
i_kant_spel28-Sep-10 11:35
i_kant_spel28-Sep-10 11:35 
QuestionBest practise for embedding .NET Winforms in MFC MDI App Pin
Rolf Kristensen20-Sep-10 10:04
Rolf Kristensen20-Sep-10 10:04 
AnswerRe: Best practise for embedding .NET Winforms in MFC MDI App Pin
Nish Nishant22-Sep-10 12:54
sitebuilderNish Nishant22-Sep-10 12:54 
GeneralRe: Best practise for embedding .NET Winforms in MFC MDI App [modified] Pin
Rolf Kristensen22-Sep-10 21:05
Rolf Kristensen22-Sep-10 21:05 
The example you have posted puts a text box control on a MFC Dialog using the CWinFormsControl. Pretty sure that CWinFormsControl cannot host anything but .NET controls.

I don't see anywhere that they take WinForm and hosts it in a MFC CFormView. I have tried to use CWinFormsView and it fails when given the typeid of a .NET Winform, but succeeds when given the typeid of a .NET Control.

I'm looking for people with experience in this area, that might show some light in this tunnel where I'm walking.

I'm curious of how one would solve the issue with getting the .NET control to close the MFC CFormView, change icon/title of the MFC CFormView. The .NET control doesn't get a parent window-object, but only a win32 window handle (integer). My current solution is to have an explicit SetParent on the user-control and make my CWinFormsView-object also inherit from a parent-interface. I don't want my .NET user-control to know anything about the awful world of CLI/Interop.

modified on Thursday, September 23, 2010 3:11 AM

GeneralRe: Best practise for embedding .NET Winforms in MFC MDI App Pin
Nish Nishant23-Sep-10 3:13
sitebuilderNish Nishant23-Sep-10 3:13 
GeneralRe: Best practise for embedding .NET Winforms in MFC MDI App [modified] Pin
Rolf Kristensen23-Sep-10 3:20
Rolf Kristensen23-Sep-10 3:20 
GeneralRe: Best practise for embedding .NET Winforms in MFC MDI App Pin
Nish Nishant24-Sep-10 4:14
sitebuilderNish Nishant24-Sep-10 4:14 
QuestionConversion between array<String^>^ and const char *const* and back? Pin
Ed K15-Sep-10 8:19
Ed K15-Sep-10 8:19 
AnswerRe: Conversion between array<String^>^ and const char *const* and back? Pin
N a v a n e e t h15-Sep-10 22:50
N a v a n e e t h15-Sep-10 22:50 
GeneralRe: Conversion between array^ and const char *const* and back? Pin
ian__lindsay16-Sep-10 0:30
ian__lindsay16-Sep-10 0:30 
GeneralRe: Conversion between array^ and const char *const* and back? Pin
N a v a n e e t h16-Sep-10 1:11
N a v a n e e t h16-Sep-10 1:11 
GeneralRe: Conversion between array^ and const char *const* and back? Pin
Luc Pattyn16-Sep-10 1:38
sitebuilderLuc Pattyn16-Sep-10 1:38 
GeneralRe: Conversion between array^ and const char *const* and back? Pin
N a v a n e e t h16-Sep-10 2:24
N a v a n e e t h16-Sep-10 2:24 
GeneralRe: Conversion between array^ and const char *const* and back? Pin
Luc Pattyn16-Sep-10 2:27
sitebuilderLuc Pattyn16-Sep-10 2:27 
GeneralRe: Conversion between array^ and const char *const* and back? Pin
N a v a n e e t h16-Sep-10 18:01
N a v a n e e t h16-Sep-10 18:01 
Question"Advanced programming in the UNIX environment" Book Code Pin
crazy6614-Sep-10 18:17
crazy6614-Sep-10 18:17 
AnswerRe: "Advanced programming in the UNIX environment" Book Code Pin
Richard MacCutchan14-Sep-10 21:37
mveRichard MacCutchan14-Sep-10 21:37 
GeneralRe: "Advanced programming in the UNIX environment" Book Code Pin
crazy6615-Sep-10 21:49
crazy6615-Sep-10 21:49 
QuestionBetween Two forms Pin
jashimu8-Sep-10 8:20
jashimu8-Sep-10 8:20 
AnswerRe: Between Two forms Pin
Luc Pattyn8-Sep-10 8:26
sitebuilderLuc Pattyn8-Sep-10 8:26 
GeneralRe: Between Two forms Pin
jashimu8-Sep-10 8:39
jashimu8-Sep-10 8:39 

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.