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. Firing a VARIANT type from ATL project

Firing a VARIANT type from ATL project

Scheduled Pinned Locked Moved ATL / WTL / STL
c++helpquestion
2 Posts 1 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.
  • D Offline
    D Offline
    Dudi Avramov
    wrote on last edited by
    #1

    Hi there, i try to fire a VARIANT from ATL object. So, the ATL wizard creates a xxxCP.h file that implements the Fire_XXX function. However, the wizard writes wrong statement: pvars[0] = &Data; since pvars is CComVariant type then the operator '=' for bool is called instead of the operator '=' for VARIANT. I needed to change the code to 'pvars[0] = Data;' (without the '&'). Changing the xxxCP.h file is dangerous since the ATL wizard can overwrite it. Can anyone help me with this?

    D 1 Reply Last reply
    0
    • D Dudi Avramov

      Hi there, i try to fire a VARIANT from ATL object. So, the ATL wizard creates a xxxCP.h file that implements the Fire_XXX function. However, the wizard writes wrong statement: pvars[0] = &Data; since pvars is CComVariant type then the operator '=' for bool is called instead of the operator '=' for VARIANT. I needed to change the code to 'pvars[0] = Data;' (without the '&'). Changing the xxxCP.h file is dangerous since the ATL wizard can overwrite it. Can anyone help me with this?

      D Offline
      D Offline
      Dudi Avramov
      wrote on last edited by
      #2

      It is a known bug. Take a look at article Q264985 and Q250847.

      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