Ok, Long story short, I have been googling for a couple weeks now, and can't find ANY help on this. Any program I try to compile that uses winreg.h, I always get the same result:
--------------------Configuration: reg - Win32 Debug--------------------
Compiling...
reg.cpp
c:\program files\microsoft visual studio\vc98\include\winreg.h(36) : error C2146: syntax error : missing ';' before identifier 'REGSAM'
c:\program files\microsoft visual studio\vc98\include\winreg.h(36) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
reg.obj - 2 error(s), 0 warning(s)
------------------------------------------------------------
I also get the same error when using an older version of Borland C++ 5 with it's included headers, not visual c++'s.
I'm compiling on Windows XP Pro SP2. Thanks!
--------------------Configuration: reg - Win32 Debug--------------------
Compiling...
reg.cpp
c:\program files\microsoft visual studio\vc98\include\winreg.h(36) : error C2146: syntax error : missing ';' before identifier 'REGSAM'
c:\program files\microsoft visual studio\vc98\include\winreg.h(36) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
reg.obj - 2 error(s), 0 warning(s)
------------------------------------------------------------
I also get the same error when using an older version of Borland C++ 5 with it's included headers, not visual c++'s.
I'm compiling on Windows XP Pro SP2. Thanks!