![]() |
|
|
|
#1 |
|
Guest
Posts: n/a
|
Windows DDK Suite 3.0
hi,, all...
i'm new here... i'm trying to make an application such as magictune of portrait displays... i plant a micro controller in the display.. that is configured i2c slave device.. connect pin 12, 15 of vga cable to the mcu.. i'm trying to send some simple data to the mcu... i'm using vc++ 6.0 i found that i need video.h from msdn.. so,, i got windows ddk suite 3.0 and installed it.. the header file, video.h is in C:\WINDDK\3790\inc\ddk\wxp and in vc++ 6.0,, tools -> options..., directories tab.. i put above directory in the list of "include files" section.. then i put // some header files #include <video.h> // some header files and tried to compile.. then i got 102 errors that all of them came from video.h and videoagp.h that are newly included headers.. did i do something wrong to configure building environment? is there some special thing to do in order to compile ddk headers? thank you very much... best regards, /u --------------- --------------------Configuration: VWCtrl - Win32 Debug-------------------- Compiling... VWCtrlDlg.cpp c:\winddk\3790\inc\ddk\wxp\videoagp.h(35) : error C2065: 'PAGP_RESERVE_PHYSICAL' : undeclared identifier c:\winddk\3790\inc\ddk\wxp\videoagp.h(35) : error C2100: illegal indirection c:\winddk\3790\inc\ddk\wxp\videoagp.h(35) : error C2501: 'PHYSICAL_ADDRESS' : missing storage-class or type specifiers c:\winddk\3790\inc\ddk\wxp\videoagp.h(35) : error C2143: syntax error : missing ';' before '(' c:\winddk\3790\inc\ddk\wxp\videoagp.h(36) : error C2226: syntax error : unexpected type 'PVOID' c:\winddk\3790\inc\ddk\wxp\videoagp.h(40) : error C2059: syntax error : ')' .. .. .. c:\winddk\3790\inc\ddk\wxp\video.h(1500) : error C2146: syntax error : missing ';' before identifier 'InterfaceReference' c:\winddk\3790\inc\ddk\wxp\video.h(1500) : error C2501: 'PINTERFACE_REFERENCE' : missing storage-class or type specifiers c:\winddk\3790\inc\ddk\wxp\video.h(1500) : fatal error C1003: error count exceeds 100; stopping compilation Error executing cl.exe. VWCtrl.exe - 102 error(s), 0 warning(s) --------------- |
|
|
#2 |
|
Guest
Posts: n/a
|
Re: Windows DDK Suite 3.0
You should be building with the DDK's build environment. If you want to
work out of visual studio, use DDKBUILD from http://www.hollistech.com/. You cannot use Visual Studio 6.0's compiler for building this stuff. -- Don Burn (MVP, Windows DDK) Windows 2k/XP/2k3 Filesystem and Driver Consulting Remove StopSpam from the email to reply "undergnd" <jhk@dti3d.com> wrote in message news:1132245860.981715.206610@g14g2000cwa.googlegr oups.com... > hi,, all... > i'm new here... > > i'm trying to make an application such as magictune of portrait > displays... > i plant a micro controller in the display.. that is configured i2c > slave device.. > connect pin 12, 15 of vga cable to the mcu.. > i'm trying to send some simple data to the mcu... > i'm using vc++ 6.0 > > i found that i need video.h from msdn.. > so,, i got windows ddk suite 3.0 and installed it.. > the header file, video.h is in > > C:\WINDDK\3790\inc\ddk\wxp > > and in vc++ 6.0,, > tools -> options..., directories tab.. > i put above directory in the list of "include files" section.. > > then i put > > // some header files > #include <video.h> > // some header files > > and tried to compile.. > then i got 102 errors that all of them came from video.h and videoagp.h > that are newly included headers.. > did i do something wrong to configure building environment? > is there some special thing to do in order to compile ddk headers? > thank you very much... > > best regards, > /u > > --------------- > --------------------Configuration: VWCtrl - Win32 > Debug-------------------- > Compiling... > VWCtrlDlg.cpp > c:\winddk\3790\inc\ddk\wxp\videoagp.h(35) : error C2065: > 'PAGP_RESERVE_PHYSICAL' : undeclared identifier > c:\winddk\3790\inc\ddk\wxp\videoagp.h(35) : error C2100: illegal > indirection > c:\winddk\3790\inc\ddk\wxp\videoagp.h(35) : error C2501: > 'PHYSICAL_ADDRESS' : missing storage-class or type specifiers > c:\winddk\3790\inc\ddk\wxp\videoagp.h(35) : error C2143: syntax error : > missing ';' before '(' > c:\winddk\3790\inc\ddk\wxp\videoagp.h(36) : error C2226: syntax error : > unexpected type 'PVOID' > c:\winddk\3790\inc\ddk\wxp\videoagp.h(40) : error C2059: syntax error : > ')' > . > . > . > c:\winddk\3790\inc\ddk\wxp\video.h(1500) : error C2146: syntax error : > missing ';' before identifier 'InterfaceReference' > c:\winddk\3790\inc\ddk\wxp\video.h(1500) : error C2501: > 'PINTERFACE_REFERENCE' : missing storage-class or type specifiers > c:\winddk\3790\inc\ddk\wxp\video.h(1500) : fatal error C1003: error > count exceeds 100; stopping compilation > Error executing cl.exe. > > VWCtrl.exe - 102 error(s), 0 warning(s) > > --------------- > |
|
|
#3 |
|
Guest
Posts: n/a
|
Re: Windows DDK Suite 3.0
hi,,
thank you for the answer.. maybe,, your suggestion doesn't work since i'm using vc++ 6.0?? anyway,, is there anyway that i can use ddc/ci without using video.h? thank you very much... regards, /u |
|
|
#4 |
|
Guest
Posts: n/a
|
Re: Windows DDK Suite 3.0
NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,
NO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! The current DDK includes a compiler and all the tools, using anything other than that compiler is a recipe for disaster. You cannot use VC++ 6.0 since there are constructs in the includes that will fail with the 6.0 compiler!!! You can use VC as an editor using the DDKBUILD, but do not even think of using it as a compiler for a driver (except maybe NT 4.0) -- Don Burn (MVP, Windows DDK) Windows 2k/XP/2k3 Filesystem and Driver Consulting Remove StopSpam from the email to reply "undergnd" <jhk@dti3d.com> wrote in message news:1132255232.851730.161370@g49g2000cwa.googlegr oups.com... > hi,, > thank you for the answer.. > maybe,, your suggestion doesn't work since i'm using vc++ 6.0?? > anyway,, > is there anyway that i can use ddc/ci without using video.h? > thank you very much... > > regards, > /u > |
|
|
#5 |
|
Guest
Posts: n/a
|
Re: Windows DDK Suite 3.0
dear mr. don burn..
thank you very much for your answer.. i'll try to figure out.. since i don't have much experience with windows stuff.. i really confused... i just found that your article from msdn page.. http://www.microsoft.com/whdc/driver...Dev_Intro.mspx you are a famous person.. it is a great honor to me to meet you here.. thank you again... best regards, /u |
|
|
#6 |
|
Guest
Posts: n/a
|
Re: Windows DDK Suite 3.0
Hi,
Here is the quick link to driver build tutorial for windows , hope it would help;-) http://www.geocities.com/abdulrazaqali/tutorial.htm Regards, ali |
|
|
#7 |
|
Guest
Posts: n/a
|
Re: Windows DDK Suite 3.0
hi,,
thank you for the tutorial... i'm still getting confused... i have an application that reside in the system tray and monitors hotkey input.. if it receives a certain hot key input.. then it need to send a certain command to the display over i2c in vga cable.. so the application is an executable file... but it seems that the ddk generates .sys file... can i just add i2c communication feature to the existing application (which was created by mfc application wizard in vc++ 6.0) using ddk? thank you very much... best regards, /u |
|
|
#8 |
|
Guest
Posts: n/a
|
Re: Windows DDK Suite 3.0
hi,,
a question about the space in the path.. i tried to compile my application using ddk build command,, i got bunch of errors that some header files are missing.. error message says that it is looking for some .h files that are in vc++ 6.0's include folder.. i have installed vc++ prior to installation of ddk.. so vc++ has the path of c:\program files\microsoft visual studio\vc98\include i've noticed that i should not use space in the path.. then,, i can i put the path of c:\program files\microsoft visual studio\vc98\include in SOURCES file? thank you very much... regards, /u |
|
|
#9 |
|
Guest
Posts: n/a
|
Re: Windows DDK Suite 3.0
>i have installed vc++ prior to installation of ddk.. so vc++ has the path of c:\program files\microsoft visual studio\vc98\include i've noticed that i should not use space in the path.. then,, i can i put the path of c:\program files\microsoft visual studio\vc98\include
Doh! space in Ms studio does not matter , you should not having spaces in your dricer source ( yourDriver.c , yourDriver.h). Guess you havn't read complete tutorial? you can download project's shareware document from same link for more understanding on this topic. >can i just add i2c communication feature to the existing application (which was created by mfc application wizard in vc++ 6.0) using ddk? I don't think you will be so lucky. You can't even use c runtime environment(CRT) in your driver code because its not available in kernel. Obviously no place for MFC;-) >i have an application that reside in the system tray and monitors hotkey input.. if it receives a certain hot key input.. then it need to send a certain command to the display over i2c in vga cable.. To me windows standard service should do this for you , you can look at the following link for developing services. http://www.devx.com/cplus/Article/9857/0/page/1 Or a upper level(If you don't want any preprocessing) filter driver can be generic soltuion for you, i can't point the exact resource in DDK for this. I hope some one here will provide you this pointer as there ARE filter driver samples in DDK. Regards. |
|
|
#10 |
|
Guest
Posts: n/a
|
Re: Windows DDK Suite 3.0
hi,,
thank you for the answer... so.. what you mean is.. i just leave the system tray application (the one that has been build already) as is,, i mean just add some more function to communicate with the driver in somehow.. and develop a driver for the device in c?? that can interact with the application? regards, /u |
| Thread Tools | |
| Display Modes | |
|
|
< Home - Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |