Click here to Skip to main content
16,006,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: new and delete, why does this work? Pin
Sam C15-Oct-01 11:54
Sam C15-Oct-01 11:54 
AnswerRe: new and delete, why does this work? Pin
Tomasz Sowinski15-Oct-01 10:28
Tomasz Sowinski15-Oct-01 10:28 
GeneralRe: new and delete, why does this work? Pin
Sam C15-Oct-01 11:52
Sam C15-Oct-01 11:52 
GeneralRe: new and delete, why does this work? Pin
Mike Burston15-Oct-01 12:29
Mike Burston15-Oct-01 12:29 
GeneralRe: new and delete, why does this work? Pin
PJ Arends15-Oct-01 13:07
professionalPJ Arends15-Oct-01 13:07 
GeneralRe: new and delete, why does this work? Pin
Sam C15-Oct-01 13:46
Sam C15-Oct-01 13:46 
AnswerRe: new and delete, why does this work? Pin
Sam C15-Oct-01 13:48
Sam C15-Oct-01 13:48 
GeneralATL Pin
mimi15-Oct-01 9:13
mimi15-Oct-01 9:13 
I created by Wizard ATL COM DLL that import my MFC extention DLL(from type: base Dialog) in my ATL.

Please check my steps (describes below) and tell me if I miss something.
(because when I try to perform its function from client program it become crazy)
------------------------------------------------------------------------

1. I opened project: ATL COM Wizard. [DLL] [MFC Support]
2. I inserted to the library that created the file : MyMfcDll.dll
and attached to the ATL project the files : MyMfcDll.h , MyMfcDll.lib
3. I Added by wizard ATL class [MyClass] [single] [dual]
4. I added by wizard method [ShowMfcDialog] to IMyClass and fill it so :
___________________________________________
#include "MyMfcDll.h"

STDMETHODIMP CMyClass::ShowMfcDialog()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())

CMyDialog dlg; //from the imported dll
dlg.DoModal();

return S_OK;
}
______________________________________________
5. I registered the dll (regsvr32)
and that's all !

What is missing ?

I will be greatful if you will help me ! PLEASE !!!!!


GeneralCArray "How to" Pin
RobJones15-Oct-01 7:23
RobJones15-Oct-01 7:23 
GeneralRe: CArray "How to" Pin
Carlos Antollini15-Oct-01 7:38
Carlos Antollini15-Oct-01 7:38 
GeneralRe: CArray "How to" Pin
RobJones15-Oct-01 7:55
RobJones15-Oct-01 7:55 
GeneralRe: CArray "How to" Pin
Carlos Antollini15-Oct-01 8:22
Carlos Antollini15-Oct-01 8:22 
GeneralRe: CArray "How to" Pin
Carlos Antollini15-Oct-01 8:40
Carlos Antollini15-Oct-01 8:40 
GeneralRe: CArray "How to" Pin
RobJones15-Oct-01 9:20
RobJones15-Oct-01 9:20 
GeneralRe: CArray "How to" Pin
Christian Graus15-Oct-01 10:29
protectorChristian Graus15-Oct-01 10:29 
GeneralRe: CArray "How to" Pin
RobJones15-Oct-01 11:15
RobJones15-Oct-01 11:15 
GeneralRe: CArray "How to" Pin
Christian Graus15-Oct-01 11:34
protectorChristian Graus15-Oct-01 11:34 
GeneralRe: CArray "How to" Pin
Mike Burston15-Oct-01 11:57
Mike Burston15-Oct-01 11:57 
GeneralHelp: Software Distribution in Visual C++ Pin
Agusti15-Oct-01 6:37
Agusti15-Oct-01 6:37 
GeneralRe: Help: Software Distribution in Visual C++ Pin
Carlos Antollini15-Oct-01 6:44
Carlos Antollini15-Oct-01 6:44 
GeneralMFC Extension DLL and Automation support Pin
Paul Selormey15-Oct-01 5:39
Paul Selormey15-Oct-01 5:39 
GeneralPARSING of Command Line Arguments Pin
15-Oct-01 5:23
suss15-Oct-01 5:23 
GeneralRe: PARSING of Command Line Arguments Pin
Michael P Butler15-Oct-01 5:26
Michael P Butler15-Oct-01 5:26 
GeneralRe: PARSING of Command Line Arguments Pin
Chris Losinger15-Oct-01 8:07
professionalChris Losinger15-Oct-01 8:07 
GeneralBackground image in a window? (MFC) Pin
15-Oct-01 4:14
suss15-Oct-01 4:14 

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.