Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Coder's Corner Lounge (http://www.programmingforums.org/forum11.html)
-   -   Header file internal errors (http://www.programmingforums.org/showthread.php?t=12371)

kruptof Jan 14th, 2007 11:26 AM

Header file internal errors
 
I have posted this in the lounge because i think that this is a problem down to the file, if this is in the wrong thread then please do move it.

I am trying to do some work with the NTFS Change Journal just for experimental purposes, however when i try to include the the header file winioctl.h to use things like FSCTL_QUERY_USN_JOURNAL and others, msdn says you have to include the winioctl.h, but when i include this in Dev-C++ Version 4 it picks out alot of errors inside the winioctl.h file. Can anybody suggest anything that can be done about this, should i try to re-download the file, its it another way to include the file, any suggestions will be helpful.

below are the errors that Dev_C++ V4 gave me
:

In file included from c:\docume~1\internet\mydocu~1\untitl~1.cpp:2:
C:\DEV-C_~1\Include\winioctl.h:116: syntax error before `,'
C:\DEV-C_~1\Include\winioctl.h:119: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:120: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:124: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:127: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:146: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:148: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:149: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:150: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:153: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:154: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:155: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:156: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:157: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:158: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:159: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:162: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:163: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:164: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:165: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:166: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:167: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:168: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:171: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:172: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:173: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:177: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:178: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:179: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:180: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:184: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:185: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:186: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:187: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:188: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:189: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:190: syntax error before `['
C:\DEV-C_~1\Include\winioctl.h:193: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:194: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:197: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:198: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:199: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:200: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:201: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:202: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:203: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:204: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:205: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:206: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:210: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:211: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:212: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:213: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:214: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:215: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:216: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:217: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:220: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:221: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:225: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:226: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:230: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:233: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:234: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:235: syntax error before `['
C:\DEV-C_~1\Include\winioctl.h:238: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:241: syntax error before `;'
C:\DEV-C_~1\Include\winioctl.h:242: syntax error before `;'


Cache Jan 14th, 2007 11:39 AM

See the remarks section of the following link:

http://msdn2.microsoft.com/en-us/library/aa364583.aspx

kruptof Jan 14th, 2007 1:12 PM

Thanks for that cache.

All i had to do was put the windows.h include before the winioctl.h, well that seemed to get rid of the errors.


All times are GMT -5. The time now is 3:51 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC