Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 14th, 2007, 12:26 PM   #1
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3 kruptof is on a distinguished road
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 `;'
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Old Jan 14th, 2007, 12:39 PM   #2
Cache
Hobbyist
 
Join Date: Sep 2005
Posts: 266
Rep Power: 4 Cache is on a distinguished road
See the remarks section of the following link:

http://msdn2.microsoft.com/en-us/library/aa364583.aspx
Cache is offline   Reply With Quote
Old Jan 14th, 2007, 2:12 PM   #3
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3 kruptof is on a distinguished road
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.
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
converting string to float beginnerCCC C 22 Oct 3rd, 2006 12:59 AM
OnlineTextEditor.Com! Sane Show Off Your Open Source Projects 43 Jun 16th, 2006 9:55 AM
making a header file alphonso C++ 14 Apr 5th, 2006 7:32 AM
After execution - Error cannot locate /Skin File? wchar Visual Basic 1 Mar 5th, 2005 10:04 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 5:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:49 AM.

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