Hello

I got following errors in my device driver project
Can some one help regarding this problem.


Array.cpp
E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2146: syntax error : missing
';' before identifier 'InterruptTime'
E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2501: 'InterruptTime' :
missing storage-class or type specifiers
E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2146: syntax error : missing
';' before identifier 'SystemTime'
E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2086: 'KSYSTEM_TIME' :
redefinition
E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2501: 'SystemTime' : missing
storage-class or type specifiers
E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2146: syntax error : missing
';' before identifier 'TimeZoneBias'
E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2086: 'KSYSTEM_TIME' :
redefinition
E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2501: 'TimeZoneBias' : missing
storage-class or type specifiers
E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2146: syntax error : missing
';' before identifier 'ContextRecord'
E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'PCONTEXT' : missing
storage-class or type specifiers
E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'ContextRecord' :
missing storage-class or type specifiers
E:\2KDDK\INC\DDK\NTDDK.h(10051) : error C2146: syntax error : missing
';' before identifier 'KeTickCount'
E:\2KDDK\INC\DDK\NTDDK.h(10051) : fatal error C1004: unexpected end of
file found


Thanks

Regards,
Devang vyas

Re: ntddk errors by Don

Don
Wed Jul 23 06:32:33 CDT 2008

First why in the world are you using the DDK, since that is no obsolete, get
the WDK. Second, I suspect you probel is that you are not using the BUILD
environment but instead are trying to create something with Visual Studio,
this is a guaranteed route to disaster.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply





"Devang" <devang.it@gmail.com> wrote in message
news:130c2d7d-8500-428a-b0cd-938afe6a995f@s21g2000prm.googlegroups.com...
> Hello
>
> I got following errors in my device driver project
> Can some one help regarding this problem.
>
>
> Array.cpp
> E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2146: syntax error : missing
> ';' before identifier 'InterruptTime'
> E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2501: 'InterruptTime' :
> missing storage-class or type specifiers
> E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2146: syntax error : missing
> ';' before identifier 'SystemTime'
> E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2086: 'KSYSTEM_TIME' :
> redefinition
> E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2501: 'SystemTime' : missing
> storage-class or type specifiers
> E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2146: syntax error : missing
> ';' before identifier 'TimeZoneBias'
> E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2086: 'KSYSTEM_TIME' :
> redefinition
> E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2501: 'TimeZoneBias' : missing
> storage-class or type specifiers
> E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2146: syntax error : missing
> ';' before identifier 'ContextRecord'
> E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'PCONTEXT' : missing
> storage-class or type specifiers
> E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'ContextRecord' :
> missing storage-class or type specifiers
> E:\2KDDK\INC\DDK\NTDDK.h(10051) : error C2146: syntax error : missing
> ';' before identifier 'KeTickCount'
> E:\2KDDK\INC\DDK\NTDDK.h(10051) : fatal error C1004: unexpected end of
> file found
>
>
> Thanks
>
> Regards,
> Devang vyas



Re: ntddk errors by Devang

Devang
Wed Jul 23 06:59:18 CDT 2008

On Jul 23, 4:32=A0pm, "Don Burn" <b...@stopspam.windrvr.com> wrote:
> First why in the world are you using the DDK, since that is no obsolete, =
get
> the WDK. =A0Second, I suspect you probel is that you are not using the BU=
ILD
> environment but instead are trying to create something with Visual Studio=
,
> this is a guaranteed route to disaster.
>
> --
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website:http://www.windrvr.com
> Blog:http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
> "Devang" <devang...@gmail.com> wrote in message
>
> news:130c2d7d-8500-428a-b0cd-938afe6a995f@s21g2000prm.googlegroups.com...
>
>
>
> > Hello
>
> > I got following errors in my device driver project
> > Can some one help regarding this problem.
>
> > Array.cpp
> > E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2146: syntax error : missing
> > ';' before identifier 'InterruptTime'
> > E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2501: 'InterruptTime' :
> > missing storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2146: syntax error : missing
> > ';' before identifier 'SystemTime'
> > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2086: 'KSYSTEM_TIME' :
> > redefinition
> > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2501: 'SystemTime' : missing
> > storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2146: syntax error : missing
> > ';' before identifier 'TimeZoneBias'
> > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2086: 'KSYSTEM_TIME' :
> > redefinition
> > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2501: 'TimeZoneBias' : missing
> > storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2146: syntax error : missing
> > ';' before identifier 'ContextRecord'
> > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'PCONTEXT' : missing
> > storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'ContextRecord' :
> > missing storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(10051) : error C2146: syntax error : missing
> > ';' before identifier 'KeTickCount'
> > E:\2KDDK\INC\DDK\NTDDK.h(10051) : fatal error C1004: unexpected end of
> > file found
>
> > Thanks
>
> > Regards,
> > Devang vyas- Hide quoted text -
>
> - Show quoted text -

I am not too much aware of Device driver programming.
I need to just compile this code successfully.

thanks for your reply.

will get back to you if I could find something

Regards,
Devang Vyas

Re: ntddk errors by Devang

Devang
Wed Jul 23 07:05:20 CDT 2008

On Jul 23, 4:32=A0pm, "Don Burn" <b...@stopspam.windrvr.com> wrote:
> First why in the world are you using the DDK, since that is no obsolete, =
get
> the WDK. =A0Second, I suspect you probel is that you are not using the BU=
ILD
> environment but instead are trying to create something with Visual Studio=
,
> this is a guaranteed route to disaster.
>
> --
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website:http://www.windrvr.com
> Blog:http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
> "Devang" <devang...@gmail.com> wrote in message
>
> news:130c2d7d-8500-428a-b0cd-938afe6a995f@s21g2000prm.googlegroups.com...
>
>
>
> > Hello
>
> > I got following errors in my device driver project
> > Can some one help regarding this problem.
>
> > Array.cpp
> > E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2146: syntax error : missing
> > ';' before identifier 'InterruptTime'
> > E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2501: 'InterruptTime' :
> > missing storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2146: syntax error : missing
> > ';' before identifier 'SystemTime'
> > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2086: 'KSYSTEM_TIME' :
> > redefinition
> > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2501: 'SystemTime' : missing
> > storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2146: syntax error : missing
> > ';' before identifier 'TimeZoneBias'
> > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2086: 'KSYSTEM_TIME' :
> > redefinition
> > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2501: 'TimeZoneBias' : missing
> > storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2146: syntax error : missing
> > ';' before identifier 'ContextRecord'
> > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'PCONTEXT' : missing
> > storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'ContextRecord' :
> > missing storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(10051) : error C2146: syntax error : missing
> > ';' before identifier 'KeTickCount'
> > E:\2KDDK\INC\DDK\NTDDK.h(10051) : fatal error C1004: unexpected end of
> > file found
>
> > Thanks
>
> > Regards,
> > Devang vyas- Hide quoted text -
>
> - Show quoted text -

Actually there is support included for Windows Me and Windows 98 in
the code.
That's why I have to use DDK

can you suggest any solution that can solve my problem?

Thanks

Re: ntddk errors by Don

Don
Wed Jul 23 07:50:46 CDT 2008

You need to set up the DDK/SDK following the instructions, then use the
BUILD command with a SOURCES file to compile/link the code.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply




"Devang" <devang.it@gmail.com> wrote in message
news:f5784be6-f7de-48d6-b3d6-80b23259a919@f1g2000prb.googlegroups.com...
On Jul 23, 4:32 pm, "Don Burn" <b...@stopspam.windrvr.com> wrote:
> First why in the world are you using the DDK, since that is no obsolete,
> get
> the WDK. Second, I suspect you probel is that you are not using the BUILD
> environment but instead are trying to create something with Visual Studio,
> this is a guaranteed route to disaster.
>
> --
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website:http://www.windrvr.com
> Blog:http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
> "Devang" <devang...@gmail.com> wrote in message
>
> news:130c2d7d-8500-428a-b0cd-938afe6a995f@s21g2000prm.googlegroups.com...
>
>
>
> > Hello
>
> > I got following errors in my device driver project
> > Can some one help regarding this problem.
>
> > Array.cpp
> > E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2146: syntax error : missing
> > ';' before identifier 'InterruptTime'
> > E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2501: 'InterruptTime' :
> > missing storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2146: syntax error : missing
> > ';' before identifier 'SystemTime'
> > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2086: 'KSYSTEM_TIME' :
> > redefinition
> > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2501: 'SystemTime' : missing
> > storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2146: syntax error : missing
> > ';' before identifier 'TimeZoneBias'
> > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2086: 'KSYSTEM_TIME' :
> > redefinition
> > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2501: 'TimeZoneBias' : missing
> > storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2146: syntax error : missing
> > ';' before identifier 'ContextRecord'
> > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'PCONTEXT' : missing
> > storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'ContextRecord' :
> > missing storage-class or type specifiers
> > E:\2KDDK\INC\DDK\NTDDK.h(10051) : error C2146: syntax error : missing
> > ';' before identifier 'KeTickCount'
> > E:\2KDDK\INC\DDK\NTDDK.h(10051) : fatal error C1004: unexpected end of
> > file found
>
> > Thanks
>
> > Regards,
> > Devang vyas- Hide quoted text -
>
> - Show quoted text -

Actually there is support included for Windows Me and Windows 98 in
the code.
That's why I have to use DDK

can you suggest any solution that can solve my problem?

Thanks



Re: ntddk errors by Devang

Devang
Thu Jul 24 09:12:33 CDT 2008

On Jul 23, 5:50=A0pm, "Don Burn" <b...@stopspam.windrvr.com> wrote:
> You need to set up the DDK/SDK following the instructions, then use the
> BUILD command with a SOURCES file to compile/link the code.
>
> --
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website:http://www.windrvr.com
> Blog:http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
> "Devang" <devang...@gmail.com> wrote in message
>
> news:f5784be6-f7de-48d6-b3d6-80b23259a919@f1g2000prb.googlegroups.com...
> On Jul 23, 4:32 pm, "Don Burn" <b...@stopspam.windrvr.com> wrote:
>
>
>
>
>
> > First why in the world are you using the DDK, since that is no obsolete=
,
> > get
> > the WDK. Second, I suspect you probel is that you are not using the BUI=
LD
> > environment but instead are trying to create something with Visual Stud=
io,
> > this is a guaranteed route to disaster.
>
> > --
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > Website:http://www.windrvr.com
> > Blog:http://msmvps.com/blogs/WinDrvr
> > Remove StopSpam to reply
>
> > "Devang" <devang...@gmail.com> wrote in message
>
> >news:130c2d7d-8500-428a-b0cd-938afe6a995f@s21g2000prm.googlegroups.com..=
.
>
> > > Hello
>
> > > I got following errors in my device driver project
> > > Can some one help regarding this problem.
>
> > > Array.cpp
> > > E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2146: syntax error : missing
> > > ';' before identifier 'InterruptTime'
> > > E:\2KDDK\INC\DDK\NTDDK.h(7914) : error C2501: 'InterruptTime' :
> > > missing storage-class or type specifiers
> > > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2146: syntax error : missing
> > > ';' before identifier 'SystemTime'
> > > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2086: 'KSYSTEM_TIME' :
> > > redefinition
> > > E:\2KDDK\INC\DDK\NTDDK.h(7928) : error C2501: 'SystemTime' : missing
> > > storage-class or type specifiers
> > > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2146: syntax error : missing
> > > ';' before identifier 'TimeZoneBias'
> > > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2086: 'KSYSTEM_TIME' :
> > > redefinition
> > > E:\2KDDK\INC\DDK\NTDDK.h(7935) : error C2501: 'TimeZoneBias' : missin=
g
> > > storage-class or type specifiers
> > > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2146: syntax error : missing
> > > ';' before identifier 'ContextRecord'
> > > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'PCONTEXT' : missing
> > > storage-class or type specifiers
> > > E:\2KDDK\INC\DDK\NTDDK.h(9101) : error C2501: 'ContextRecord' :
> > > missing storage-class or type specifiers
> > > E:\2KDDK\INC\DDK\NTDDK.h(10051) : error C2146: syntax error : missing
> > > ';' before identifier 'KeTickCount'
> > > E:\2KDDK\INC\DDK\NTDDK.h(10051) : fatal error C1004: unexpected end o=
f
> > > file found
>
> > > Thanks
>
> > > Regards,
> > > Devang vyas- Hide quoted text -
>
> > - Show quoted text -
>
> Actually there is support included for Windows Me and Windows 98 in
> the code.
> That's why I have to use DDK
>
> can you suggest any solution that can solve my problem?
>
> Thanks- Hide quoted text -
>
> - Show quoted text -

Thanks for your reply.
I followed steps suggested by you.
and Have successfully compiled the driver application.