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. How to add ATL object map in simple Win32 Application

How to add ATL object map in simple Win32 Application

Scheduled Pinned Locked Moved ATL / WTL / STL
c++beta-testingtutorialcode-review
4 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.
  • S Offline
    S Offline
    SiddharthAtw
    wrote on last edited by
    #1

    Hi! I am starting from ground up. I am with simple Win32 Application and I want add ATL functionality in it by fooling wizard. I planned: 1)a cpp file that has the same name as the project . 2)an ATL object map (the map can be empty, but it must be present). 3)an IDL file with the same name as the project and this file must have a Library block. Need feedback on 2 and 3.

    S 1 Reply Last reply
    0
    • S SiddharthAtw

      Hi! I am starting from ground up. I am with simple Win32 Application and I want add ATL functionality in it by fooling wizard. I planned: 1)a cpp file that has the same name as the project . 2)an ATL object map (the map can be empty, but it must be present). 3)an IDL file with the same name as the project and this file must have a Library block. Need feedback on 2 and 3.

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      What kind of feedback? That's how to fool the wizard. The easiest way to get examples of (2) and (3) if that's what you need is to run the VC++ AppWizard and select ATL. That will generate you the appropriate files, and you can cut and paste from there. I've done this before, and it works. Steve S

      S 1 Reply Last reply
      0
      • S Steve S

        What kind of feedback? That's how to fool the wizard. The easiest way to get examples of (2) and (3) if that's what you need is to run the VC++ AppWizard and select ATL. That will generate you the appropriate files, and you can cut and paste from there. I've done this before, and it works. Steve S

        S Offline
        S Offline
        SiddharthAtw
        wrote on last edited by
        #3

        Problem with (3) is with the entire IDL file.As it should not compile. So What modifications should I do in the project settings when I add it to the project. And working on Ur copy paste tip. What should be the type (EXE or DLL )of ATL WORKSPACE. Thanx for all that feedback. And feedback always for learning.

        S 1 Reply Last reply
        0
        • S SiddharthAtw

          Problem with (3) is with the entire IDL file.As it should not compile. So What modifications should I do in the project settings when I add it to the project. And working on Ur copy paste tip. What should be the type (EXE or DLL )of ATL WORKSPACE. Thanx for all that feedback. And feedback always for learning.

          S Offline
          S Offline
          Steve S
          wrote on last edited by
          #4

          The IDL file can be as simple as this; import "oaidl.idl"; import "ocidl.idl"; [ uuid(FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF), version(1.0), helpstring("myapp library") ] library MyApp { importlib("stdole32.tlb"); importlib("stdole2.tlb"); }; You don't even need to use a different UUID, since you're not going to be registering it. Your 'dummy' can be either, I tend to use DLL out of habit, since I write in-proc servers quite often :) Steve S

          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