Thread: ATL and COM?

  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 --

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

    Check out CComPtr and friends.
    Woop?

  3. #3
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    you need to CoCreateInstance() to acquire an interface, then qeury additional interfaces from there.

Popular pages Recent additions subscribe to a feed