Click here to Skip to main content
15,904,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCWnd::CreateControl error when create .NET control Pin
JohanOdin1-Mar-06 23:46
JohanOdin1-Mar-06 23:46 
I'm trying to use the CWnd::CreateControl method to create an .NET UserControl. Everything is ok until the control (window) is closed.

It seems that it is some reference count problem because the code stops at an ASSERT in the CCmdTarget class.

I provide an example. The client is built in VS 6.0 and the usercontrol is built in .NET 2005.

http://www.codeguru.com/forum/attachment.php?attachmentid=14627

Anyone else that have had the same problem. Please help me with this.



Questionconverting Hex to int Pin
chaitanya221-Mar-06 23:04
chaitanya221-Mar-06 23:04 
AnswerRe: converting Hex to int Pin
Naveen1-Mar-06 23:09
Naveen1-Mar-06 23:09 
AnswerRe: converting Hex to int Pin
toxcct1-Mar-06 23:10
toxcct1-Mar-06 23:10 
GeneralRe: converting Hex to int Pin
chaitanya221-Mar-06 23:25
chaitanya221-Mar-06 23:25 
GeneralRe: converting Hex to int Pin
toxcct1-Mar-06 23:28
toxcct1-Mar-06 23:28 
GeneralRe: converting Hex to int Pin
Cedric Moonen1-Mar-06 23:45
Cedric Moonen1-Mar-06 23:45 
GeneralRe: converting Hex to int Pin
toxcct1-Mar-06 23:47
toxcct1-Mar-06 23:47 
GeneralRe: converting Hex to int Pin
chaitanya222-Mar-06 1:41
chaitanya222-Mar-06 1:41 
GeneralRe: converting Hex to int Pin
Cedric Moonen2-Mar-06 2:18
Cedric Moonen2-Mar-06 2:18 
GeneralRe: converting Hex to binary Pin
chaitanya222-Mar-06 2:08
chaitanya222-Mar-06 2:08 
GeneralRe: converting Hex to binary Pin
Maximilien2-Mar-06 2:26
Maximilien2-Mar-06 2:26 
AnswerRe: converting Hex to int Pin
Roger Stoltz2-Mar-06 2:15
Roger Stoltz2-Mar-06 2:15 
GeneralRe: converting Hex to int Pin
chaitanya222-Mar-06 2:21
chaitanya222-Mar-06 2:21 
GeneralRe: converting Hex to int Pin
Cedric Moonen2-Mar-06 2:58
Cedric Moonen2-Mar-06 2:58 
AnswerRe: converting Hex to int Pin
Konrad Windszus2-Mar-06 3:59
Konrad Windszus2-Mar-06 3:59 
QuestionFunction with default argument Pin
vikramlinux1-Mar-06 23:00
vikramlinux1-Mar-06 23:00 
AnswerRe: Function with default argument Pin
toxcct1-Mar-06 23:02
toxcct1-Mar-06 23:02 
GeneralRe: Function with default argument Pin
vikramlinux1-Mar-06 23:10
vikramlinux1-Mar-06 23:10 
GeneralRe: Function with default argument Pin
toxcct1-Mar-06 23:12
toxcct1-Mar-06 23:12 
AnswerRe: Function with default argument Pin
Stephen Hewitt1-Mar-06 23:12
Stephen Hewitt1-Mar-06 23:12 
GeneralRe: Function with default argument Pin
vikramlinux1-Mar-06 23:13
vikramlinux1-Mar-06 23:13 
GeneralRe: Function with default argument Pin
toxcct1-Mar-06 23:16
toxcct1-Mar-06 23:16 
GeneralRe: Function with default argument Pin
Lim Bio Liong2-Mar-06 0:15
Lim Bio Liong2-Mar-06 0:15 
GeneralRe: Function with default argument Pin
toxcct2-Mar-06 0:19
toxcct2-Mar-06 0:19 

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.