Atl executable without Interface
-
Hi, I have created an ATL executable. It has only CExeModule (base -> CComModule) I inserted a dialog. and in _tWinMain , I create this dialog and show. So when I execute this exe itself, dialog shows up. Now I want this COM exe to be used in a VB program. I give the reference to this particular component . But in code how may I use this to show my dialog in my exe COM. had there been an Interface with method showdialog (where dialo will be created and showed), I would have used similar to.. Dim obj as Object Set obj = new MyInterface obj->showdialog 1. But without such interface , how can I show up my dialog in VB , if the dialog itself is created at the entry point of com i.e. in _tWinMain 2. If the ATL exe has interface and method (to show dialog), then how can I use ATL exe itself to show the dialog. Thanks Row
-
Hi, I have created an ATL executable. It has only CExeModule (base -> CComModule) I inserted a dialog. and in _tWinMain , I create this dialog and show. So when I execute this exe itself, dialog shows up. Now I want this COM exe to be used in a VB program. I give the reference to this particular component . But in code how may I use this to show my dialog in my exe COM. had there been an Interface with method showdialog (where dialo will be created and showed), I would have used similar to.. Dim obj as Object Set obj = new MyInterface obj->showdialog 1. But without such interface , how can I show up my dialog in VB , if the dialog itself is created at the entry point of com i.e. in _tWinMain 2. If the ATL exe has interface and method (to show dialog), then how can I use ATL exe itself to show the dialog. Thanks Row
You souldn't put the call the show the dialog in
WinMain
. You should use the ATL wizard to add a COM object to the project the put the call to show the dailog in one of the interface methods implemented by the object. Steve