Click here to Skip to main content
15,906,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Code for CMD.exe Pin
Mark Basedow18-Jul-03 14:27
Mark Basedow18-Jul-03 14:27 
Questionhow to take the result of a select query into a variable? Pin
vcseeker17-Jul-03 0:26
vcseeker17-Jul-03 0:26 
AnswerRe: how to take the result of a select query into a variable? Pin
Daniel Turini17-Jul-03 0:40
Daniel Turini17-Jul-03 0:40 
GeneralRe: how to take the result of a select query into a variable? Pin
vcseeker17-Jul-03 1:07
vcseeker17-Jul-03 1:07 
AnswerRe: how to take the result of a select query into a variable? Pin
Cedric Moonen17-Jul-03 1:16
Cedric Moonen17-Jul-03 1:16 
GeneralRe: how to take the result of a select query into a variable? Pin
vcseeker17-Jul-03 2:18
vcseeker17-Jul-03 2:18 
QuestionHow to set IP Address of any NIC? Pin
Hashim Saleem16-Jul-03 23:18
Hashim Saleem16-Jul-03 23:18 
GeneralWin2k DDK Pin
anshumanshinde16-Jul-03 23:03
anshumanshinde16-Jul-03 23:03 
hi!

i want to develop file filters for win2k.
i have installed win2k ddk.
i am using visual c++6.0 Enterprise Edition

i tried to run samples provided with the ddk.
/src/storage/filters/diskperf
when i compiled it i got 102 erros,just pasting a couple:

c:\ntddk\inc\ddk\ntddk.h(370) : error C2061: syntax error : identifier 'PULONG_PTR'
c:\ntddk\inc\ddk\ntddk.h(371) : error C2059: syntax error : '}'
c:\ntddk\inc\ddk\ntddk.h(824) : error C2061: syntax error : identifier 'KSPIN_LOCK'
c:\ntddk\inc\ddk\ntddk.h(824) : error C2059: syntax error : ';'
c:\ntddk\inc\ddk\ntddk.h(825) : error C2143: syntax error : missing '{' before '*'
c:\ntddk\inc\ddk\ntddk.h(3654) : error C2061: syntax error : identifier 'ULONG_PTR'

so i traced back the definitions of 'PULONG_PTR',
'ULONG_PTR' etc.. those are defined in basetsd.h
basetsd.h is included in ntdef.h which is inturn included in ntddk.h, for which we are getting the errors.
there are 2 versions of basetsd.h on my system
one provided by ms-visual studio and the other is provided by win2k ddk.
the basetsd.h provided by win2k ddk has the definitions of the 'PULONG_PTR','ULONG_PTR' etc..
while compiling the compiler is taking basetsd.h provided by ms-visual studio and not the one provided by win2kddk.

so i changed the path in #include for basetsd.h in ntdef.h
so that while compling ddk's verion of basetsd.h is used.

i complied and it worked 102 errors were cut down to 3 following ones:
c:\ntddk\inc\ddk\ntddk.h(9106) : error C2061: syntax error : identifier 'PCONTEXT'
c:\ntddk\inc\ddk\ntddk.h(9107) : error C2059: syntax error : '}'
c:\ntddk\inc\ddk\ntddk.h(10347) : fatal error C1189: #error : "Target architecture not defined"


now i dont know whats the problem.
the ddk is not compatilbe with vc complier or i cannot guess.

so please enlighten me with the above said problem

regards
anshu

GeneralRe: Win2k DDK Pin
Mike Dimmick16-Jul-03 23:27
Mike Dimmick16-Jul-03 23:27 
GeneralRe: Win2k DDK Pin
Abbas_Riazi17-Jul-03 0:23
professionalAbbas_Riazi17-Jul-03 0:23 
GeneralHide file Pin
martin_j16-Jul-03 22:48
martin_j16-Jul-03 22:48 
GeneralRe: Hide file Pin
Mike Dimmick16-Jul-03 23:28
Mike Dimmick16-Jul-03 23:28 
GeneralComboBox droppping down entire list Pin
haritadala16-Jul-03 21:55
haritadala16-Jul-03 21:55 
GeneralRe: ComboBox droppping down entire list Pin
Cedric Moonen16-Jul-03 22:01
Cedric Moonen16-Jul-03 22:01 
GeneralRe: ComboBox droppping down entire list Pin
haritadala16-Jul-03 22:21
haritadala16-Jul-03 22:21 
GeneralRe: ComboBox droppping down entire list Pin
Cedric Moonen16-Jul-03 22:25
Cedric Moonen16-Jul-03 22:25 
GeneralA simple linking question Pin
Themis16-Jul-03 21:26
Themis16-Jul-03 21:26 
GeneralRe: A simple linking question Pin
Mike Dimmick16-Jul-03 22:36
Mike Dimmick16-Jul-03 22:36 
GeneralRe: A simple linking question Pin
Themis16-Jul-03 23:08
Themis16-Jul-03 23:08 
GeneralRe: A simple linking question Pin
Mike Dimmick16-Jul-03 23:20
Mike Dimmick16-Jul-03 23:20 
GeneralRe: A simple linking question Pin
Themis17-Jul-03 1:42
Themis17-Jul-03 1:42 
GeneralCButton MouseDown Pin
shinay16-Jul-03 20:37
shinay16-Jul-03 20:37 
GeneralRe: CButton MouseDown Pin
Fredrik Skog16-Jul-03 21:00
Fredrik Skog16-Jul-03 21:00 
GeneralRe: CButton MouseDown Pin
sdfdsfa17-Jul-03 5:52
sdfdsfa17-Jul-03 5:52 
GeneralRe: CButton MouseDown Pin
Fredrik Skog17-Jul-03 20:43
Fredrik Skog17-Jul-03 20:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.