The Artima Developer Community
Sponsored Link

C# Answers Forum
activex control crashes dialog box

1 reply on 1 page. Most recent reply: Oct 2, 2005 4:27 PM by Torston Cederland

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Torston Cederland

Posts: 2
Nickname: quarters42
Registered: Oct, 2005

activex control crashes dialog box Posted: Oct 1, 2005 4:25 PM
Reply to this message Reply
Advertisement
I've got an activex control (OCX) from LabJack which just lets you access the LabJack hardware. I want to use a non-modal dialog so the dialog can send and receive messages from the app and when the dialog has the control, it gives me an assertion error. I traced into it earlier and I will reply to this post with details of where it goes astray in the mfc internals.

zliminator


Torston Cederland

Posts: 2
Nickname: quarters42
Registered: Oct, 2005

Re: activex control crashes dialog box Posted: Oct 2, 2005 4:27 PM
Reply to this message Reply
It gives an assertion error because when I call ShowWindow()

m_pModeless = new testdlg(this);
m_pModeless->Create();
m_pModeless->ShowWindow(TRUE);

and trace into the code for it, the m_hWnd var is 0.

When I remove the activex control from the dialog the
m_hWnd var is set to something.

Any ideas?

Dan

Flat View: This topic has 1 reply on 1 page
Topic: Configurations of the .Net applications Previous Topic   Next Topic Topic: sql server versus serialization

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use