oleauto.h errors
-
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:) -
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:) -
VC 6 sj
-
VC 6 sj