Click here to Skip to main content
11,709,537 members (53,286 online)

C / C++ / MFC

 
AnswerRe: _IID_IXMLHTTPRequest linker error Pin
Richard MacCutchan14-Feb-13 23:09
mvpRichard MacCutchan14-Feb-13 23:09 
AnswerRe: _IID_IXMLHTTPRequest linker error Pin
DavidCrow15-Feb-13 5:31
memberDavidCrow15-Feb-13 5:31 
QuestionMCF Pin
FranksLIC14-Feb-13 10:55
groupFranksLIC14-Feb-13 10:55 
AnswerRe: MCF Pin
Jibesh14-Feb-13 11:12
memberJibesh14-Feb-13 11:12 
AnswerRe: MCF Pin
jeron114-Feb-13 12:01
memberjeron114-Feb-13 12:01 
AnswerRe: MCF Pin
Maximilien15-Feb-13 1:20
memberMaximilien15-Feb-13 1:20 
AnswerRe: MCF Pin
SCProrammer15-Feb-13 5:56
memberSCProrammer15-Feb-13 5:56 
QuestionHosting .net window in MFC dialog Pin
Yunaless14-Feb-13 4:06
memberYunaless14-Feb-13 4:06 
As the title says I am trying to host a .net modeless form inside an MFC dialog. I read the article Using WinForms controls in an MFC dialog[^] but I do not want to do it this was because I do not wish to compile the project that contains the MFC dialog in /clr.
So I tried a different path.
I created a /clr dll that exports a very simple function

HWND getDotNetWindowHandler()
{
    HostedForm ^frm = gcnew HostedForm();
    return static_cast<HWND>(frm->

The hosted form is a .net form without borders. So my dialog takes the handler(by calling the dll, no need to show the implementation here) and places the form in a STATIC control window.

m_pDotNetWnd = CWnd::FromHandle(getDotNetWindowHandler());
CWnd* pWndContainer = GetDlgItem(IDC_DOTNET_WND);
if(m_pDotNetWnd != NULL && pWndContainer != NULL)
{
   m_pDotNetWnd->

Everything seems to work just fine but after a while I am having a deadlock. The window freezes.
After a lot of research on the internet it seems to be a problem with the SendMessage when the child window is created from a different thread. I couldn't find any workarround though. Is there any? Can someone give me a clue?
QuestionCView::OnDraw - related question Pin
tagopi13-Feb-13 22:29
membertagopi13-Feb-13 22:29 
AnswerRe: CView::OnDraw - related question Pin
Sivaraman Dhamodharan13-Feb-13 23:26
memberSivaraman Dhamodharan13-Feb-13 23:26 
GeneralRe: CView::OnDraw - related question Pin
tagopi13-Feb-13 23:40
membertagopi13-Feb-13 23:40 
SuggestionRe: CView::OnDraw - related question Pin
Richard MacCutchan13-Feb-13 23:51
mvpRichard MacCutchan13-Feb-13 23:51 
GeneralRe: CView::OnDraw - related question Pin
tagopi14-Feb-13 0:14
membertagopi14-Feb-13 0:14 
GeneralRe: CView::OnDraw - related question Pin
Richard MacCutchan14-Feb-13 0:41
mvpRichard MacCutchan14-Feb-13 0:41 
GeneralRe: CView::OnDraw - related question Pin
tagopi14-Feb-13 1:33
membertagopi14-Feb-13 1:33 
GeneralRe: CView::OnDraw - related question Pin
Richard MacCutchan14-Feb-13 1:41
mvpRichard MacCutchan14-Feb-13 1:41 
AnswerRe: CView::OnDraw - related question Pin
Andrew Cherednik14-Feb-13 13:26
memberAndrew Cherednik14-Feb-13 13:26 
QuestionVisual Studio Display Thread question Pin
ForNow13-Feb-13 21:53
memberForNow13-Feb-13 21:53 
AnswerRe: Visual Studio Display Thread question Pin
Richard MacCutchan13-Feb-13 22:26
mvpRichard MacCutchan13-Feb-13 22:26 
GeneralRe: Visual Studio Display Thread question Pin
ForNow14-Feb-13 3:15
memberForNow14-Feb-13 3:15 
AnswerRe: Visual Studio Display Thread question Pin
Albert Holguin14-Feb-13 4:07
memberAlbert Holguin14-Feb-13 4:07 
AnswerRe: Visual Studio Display Thread question Pin
DavidCrow14-Feb-13 5:23
memberDavidCrow14-Feb-13 5:23 
GeneralRe: Visual Studio Display Thread question Pin
ForNow14-Feb-13 7:08
memberForNow14-Feb-13 7:08 
Question................ Pin
Member 981141113-Feb-13 19:21
memberMember 981141113-Feb-13 19:21 
AnswerRe: upload data using xmlhttp( need an urgent help) Pin
Richard MacCutchan13-Feb-13 22:25
mvpRichard MacCutchan13-Feb-13 22:25 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 28 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid