ATL and COM?

This is a discussion on ATL and COM? within the Windows Programming forums, part of the Platform Specific Boards category; I'm having trouble very basically trying to use COM with ATL, I just look at the documentation and I feel ...

  1. #1
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465

    ATL and COM?

    I'm having trouble very basically trying to use COM with ATL, I just look at the documentation and I feel like none of it applies. I just want to query an interface and stuff, not learn how to create the server objects and everything. Can I use ATL to query COM interfaces? If so, what sort of technical terms or links can help me out? If not, what can I do to do this, I was hard coding this but it is very tedious --

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,807
    Sure.

    Check out CComPtr and friends.
    Woop?

  3. #3
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    you need to CoCreateInstance() to acquire an interface, then qeury additional interfaces from there.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21