title: Converting from PROP_ENTRY to PROP_ENTRY_TYPE
body: <p>I've inherited an old project that was using Ole and ActiveX tools. Compiling gives a deprecation warning on the PROP_ENTRY macro, and they replacing with PROP_ENTRY_TYPE, but that takes a 4th parameter. I found a list of types, like VT_BSTR, VT_UNIT, VT_UNKNOWN, etc. but it's unclear to me how to figure out what the types should be. Since the old macro did not require the type, was there a default type in the old way of doing things that I could use? Failing that, anyone have suggestions as to what the types should be for any of these items? I tried using VT_BSTR for everything, as most of the values could be (?) strings, but that gets a failure way down in some ActiveX stuff; also tried VT_UNKNOWN. Suggestions appreciated. Things do run (with some problems) with the old code, but would be nice to be able to move our code base forward.
  Thanks,
  Ken</p>
  
  <pre><code>BEGIN_PROPERTY_MAP(CCiButton)
  #if 1
          // old style
      PROP_ENTRY("Caption", DISPID_CAPTION, CLSID_NULL)
      PROP_ENTRY("Back Color", DISPID_BACKCOLOR, CLSID_StockColorPage)
      PROP_ENTRY("Fill Color", DISPID_FILLCOLOR, CLSID_StockColorPage)
      PROP_ENTRY("Font", DISPID_FONT, CLSID_StockFontPage)
      PROP_ENTRY("Picture", DISPID_PICTURE, CLSID_StockPicturePage)
      PROP_ENTRY("Button Style", 1, CLSID_CiButtonProp)
      PROP_ENTRY("Text Color", 2, CLSID_StockColorPage)
      PROP_ENTRY("Text Shadow Color", 3, CLSID_StockColorPage)
      PROP_ENTRY("Tool Tip Text", 4, CLSID_CiButtonProp)
      PROP_ENTRY("Disabled Picture", 5, CLSID_StockPicturePage)
      PROP_ENTRY("Enabled", DISPID_ENABLED, CLSID_NULL)
  #else
          // new style, fails.
      PROP_ENTRY_TYPE("Caption", DISPID_CAPTION, CLSID_NULL, VT_UNKNOWN)
      PROP_ENTRY_TYPE("Back Color", DISPID_BACKCOLOR, CLSID_StockColorPage, VT_UNKNOWN)
      PROP_ENTRY_TYPE("Fill Color", DISPID_FILLCOLOR, CLSID_StockColorPage, VT_UNKNOWN)
      PROP_ENTRY_TYPE("Font", DISPID_FONT, CLSID_StockFontPage, VT_UNKNOWN)
      PROP_ENTRY_TYPE("Picture", DISPID_PICTURE, CLSID_StockPicturePage, VT_UNKNOWN)
      PROP_ENTRY_TYPE("Button Style", 1, CLSID_CiButtonProp, VT_UNKNOWN)
      PROP_ENTRY_TYPE("Text Color", 2, CLSID_StockColorPage, VT_UNKNOWN)
      PROP_ENTRY_TYPE("Text Shadow Color", 3, CLSID_StockColorPage, VT_UNKNOWN)
      PROP_ENTRY_TYPE("Tool Tip Text", 4, CLSID_CiButtonProp, VT_UNKNOWN)
      PROP_ENTRY_TYPE("Disabled Picture", 5, CLSID_StockPicturePage, VT_UNKNOWN)
      PROP_ENTRY_TYPE("Enabled", DISPID_ENABLED, CLSID_NULL, VT_UNKNOWN)
  #endif
  END_PROPERTY_MAP()
  </code></pre>