Click here to Skip to main content
16,004,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwho knows that? Pin
Atilla Selem7-May-02 6:38
Atilla Selem7-May-02 6:38 
AnswerRe: who knows that? Pin
Chris Losinger7-May-02 6:49
professionalChris Losinger7-May-02 6:49 
GeneralDrag and Drop bitmaps !!! Pin
Hadi Rezaee7-May-02 4:56
Hadi Rezaee7-May-02 4:56 
GeneralRe: Drag and Drop bitmaps !!! Pin
Chris Hambleton7-May-02 5:23
Chris Hambleton7-May-02 5:23 
GeneralRe: Drag and Drop bitmaps !!! Pin
Hadi Rezaee7-May-02 5:43
Hadi Rezaee7-May-02 5:43 
GeneralQ: how to obtain interface pointer for ATL ActiveX control in an MFC app Pin
Gil Clark7-May-02 4:53
Gil Clark7-May-02 4:53 
GeneralRe: Q: how to obtain interface pointer for ATL ActiveX control in an MFC app Pin
Gil Clark8-May-02 7:13
Gil Clark8-May-02 7:13 
GeneralDisplay a dialog box from a DLL COM Pin
Jerome Conus7-May-02 4:38
Jerome Conus7-May-02 4:38 
Hi !

I started to develop an ATL object with VC++ 6.0. The COM object is a DLL, supporting the MFC.
In some particular situation, I need to display a dialog box. I created a new class, derived from CDialog, as I usually do with a normal MFC application (Let's call this class CTestDlg).
In the ATL class, I added a member of type of my dialog class (CTestDlg m_myDialog), and when I want to display it, I do : m_myDialog.DoModal();
When I run this COM object, at the moment of displaying the dialog, I get an ASSERT error. In the debugger, the failed assertion is :

ASSERT(afxCurrentResourceHandle != NULL)

which is called in the function CDialog::OnInitDialog()

I'm now wondering if a COM Dll is able to display a dialog box, and if yes, how I'm supposed to do it !!!

Any help will be greatly appreciated !

Thank you !

Jerome

GeneralRe: Display a dialog box from a DLL COM Pin
Chris Losinger7-May-02 5:08
professionalChris Losinger7-May-02 5:08 
GeneralRe: Display a dialog box from a DLL COM Pin
Jerome Conus7-May-02 5:13
Jerome Conus7-May-02 5:13 
GeneralRe: Display a dialog box from a DLL COM Pin
Jonathan Craig7-May-02 5:46
Jonathan Craig7-May-02 5:46 
GeneralRe: Display a dialog box from a DLL COM Pin
Jerome Conus7-May-02 5:55
Jerome Conus7-May-02 5:55 
Questiondoes CTreeCtrl have this function? Pin
7-May-02 4:23
suss7-May-02 4:23 
AnswerRe: does CTreeCtrl have this function? Pin
Philip Patrick7-May-02 6:35
professionalPhilip Patrick7-May-02 6:35 
AnswerRe: does CTreeCtrl have this function? Pin
Joel Lucsy7-May-02 11:33
Joel Lucsy7-May-02 11:33 
Questiondoes CTreeCtrl have this fuction? Pin
7-May-02 4:19
suss7-May-02 4:19 
AnswerRe: does CTreeCtrl have this fuction? Pin
Chris Losinger7-May-02 4:26
professionalChris Losinger7-May-02 4:26 
GeneralSome DLL questions !!! Pin
Hadi Rezaee7-May-02 4:15
Hadi Rezaee7-May-02 4:15 
GeneralRe: Some DLL questions !!! Pin
Chris Losinger7-May-02 4:27
professionalChris Losinger7-May-02 4:27 
GeneralRe: Some DLL questions !!! Pin
Hadi Rezaee7-May-02 5:08
Hadi Rezaee7-May-02 5:08 
GeneralRe: Some DLL questions !!! Pin
Paul M Watt7-May-02 5:23
mentorPaul M Watt7-May-02 5:23 
GeneralRe: Some DLL questions !!! Pin
Paul M Watt7-May-02 5:20
mentorPaul M Watt7-May-02 5:20 
GeneralRe: Some DLL questions !!! Pin
Hadi Rezaee7-May-02 6:19
Hadi Rezaee7-May-02 6:19 
GeneralRe: Some DLL questions !!! Pin
Paul M Watt7-May-02 7:31
mentorPaul M Watt7-May-02 7:31 
GeneralRe: Some DLL questions !!! Pin
Hadi Rezaee7-May-02 9:52
Hadi Rezaee7-May-02 9: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.