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. C / C++ / MFC
  4. oleauto.h errors

oleauto.h errors

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiohelpquestion
4 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.
  • J Offline
    J Offline
    johnstonsk
    wrote on last edited by
    #1

    I am trying to use the SystemTimeToVariantTime(...) function so that I can convert systemTime to a double. The MSDN says that I need to include the oleauto.h file and add the oleaut32.lib file to my project. when I try to include the oleauto.h file I get the following errors. d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2143: syntax error : missing ';' before 'const' d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2501: 'EXTERN_C' : missing storage-class or type specifiers d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2146: syntax error : missing ';' before identifier 'IID_StdOle' d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2734: 'IID' : const object must be initialized if not extern d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : fatal error C1004: unexpected end of file found Any ideas why I get these errors? thanks, sj:)

    A 1 Reply Last reply
    0
    • J johnstonsk

      I am trying to use the SystemTimeToVariantTime(...) function so that I can convert systemTime to a double. The MSDN says that I need to include the oleauto.h file and add the oleaut32.lib file to my project. when I try to include the oleauto.h file I get the following errors. d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2143: syntax error : missing ';' before 'const' d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2501: 'EXTERN_C' : missing storage-class or type specifiers d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2146: syntax error : missing ';' before identifier 'IID_StdOle' d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : error C2734: 'IID' : const object must be initialized if not extern d:\program files\microsoft visual studio\vc98\include\oleauto.h(30) : fatal error C1004: unexpected end of file found Any ideas why I get these errors? thanks, sj:)

      A Offline
      A Offline
      AlexO
      wrote on last edited by
      #2

      what compiler are you using (VC 6, VC7)?

      J 1 Reply Last reply
      0
      • A AlexO

        what compiler are you using (VC 6, VC7)?

        J Offline
        J Offline
        johnstonsk
        wrote on last edited by
        #3

        VC 6 sj

        A 1 Reply Last reply
        0
        • J johnstonsk

          VC 6 sj

          A Offline
          A Offline
          AlexO
          wrote on last edited by
          #4

          then I need to see full cpp file compilation of which gives an error

          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