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. ATL property problem

ATL property problem

Scheduled Pinned Locked Moved ATL / WTL / STL
helpc++question
2 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.
  • R Offline
    R Offline
    Radu Sorin
    wrote on last edited by
    #1

    I am using VC2003 and working on a mfc project that includes ALT(i'm a beginer in ATL) and I encountered the folowing problem : I have defined some properties interface IATLDisplay : IDispatch{ // ..... more properties // the next line is the one with the problem [propget, id(2), helpstring("property GetLastChangeTime")] HRESULT GetLastChangeTime([out, retval] COleDateTime* pVal); }; Upon compiling i get the folowing error message : error MIDL2025 : syntax error : expecting a type specification near "COleDateTime" - error related to the above presented line Any ideea why this apears ? do i need to import some aditional .idl file ? Thanks for any help .

    K 1 Reply Last reply
    0
    • R Radu Sorin

      I am using VC2003 and working on a mfc project that includes ALT(i'm a beginer in ATL) and I encountered the folowing problem : I have defined some properties interface IATLDisplay : IDispatch{ // ..... more properties // the next line is the one with the problem [propget, id(2), helpstring("property GetLastChangeTime")] HRESULT GetLastChangeTime([out, retval] COleDateTime* pVal); }; Upon compiling i get the folowing error message : error MIDL2025 : syntax error : expecting a type specification near "COleDateTime" - error related to the above presented line Any ideea why this apears ? do i need to import some aditional .idl file ? Thanks for any help .

      K Offline
      K Offline
      Kurt _B
      wrote on last edited by
      #2

      COleDateTime is a MFC\ATL class and cannot be used in a idl file, you need to use DATE*.

      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