Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. Atl executable without Interface

Atl executable without Interface

Scheduled Pinned Locked Moved ATL / WTL / STL
c++comquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ROWALI
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • R ROWALI

      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

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups