Click here to Skip to main content
6,595,444 members and growing! (21,590 online)
Email Password   helpLost your password?
General Programming » Macros and Add-ins » General     Intermediate License: The Code Project Open License (CPOL)

A DDK's project wizard for VC2003

By SevenCat

A DDK's project wizard for VC2003.
VC7.1Win2K, MFC, VS.NET2003, Dev
Posted:14 Nov 2003
Views:77,150
Bookmarked:24 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
19 votes for this article.
Popularity: 3.23 Rating: 2.53 out of 5
6 votes, 31.6%
1
1 vote, 5.3%
2
1 vote, 5.3%
3
3 votes, 15.8%
4
8 votes, 42.1%
5

Introduction

I used command line to compile DDK driver, but never got used to it. So I thought, why not write a wizard to do that.

So I did, and can compiled DDK's example and even WinpCap's NDIS driver.

Background

I stole some QuickSYS' files, and I appreciate the author very much.

Using the code

First, you may have to install DDK. This Wizard depends on the environment variable "ddkroot". If you want to build NDIS driver, please add NDIS.lib to your project.

For common use, just create a new project, choose the "DDK wizard", and press button "Finish", and then everything is OK.

If you want to compile the DDK's examples, you may refer to one file named "sources" in the example directory. Some macros are defined in that file.

For example. you may want to compile DDK's Passthru sample:

  1. Create a new project using this wizard, and delete the c and h file which is created by wizard, because we don't need them now.
  2. Copy the files(*.c, *.h, *.rc) from ntddk\src\network\ndis\passthru to the project directory.
  3. Add these files to the project.
  4. File "sources" are like the following:
    //...
    
    TARGETNAME=PASSTHRU
    TARGETPATH=obj 
    TARGETTYPE=DRIVER 
    TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib 
    C_DEFINES=$(C_DEFINES) -DNDIS40 -DNDIS_MINIPORT_DRIVER -DNDIS40_MINIPORT 
    INCLUDES=..\..\inc 
    SOURCES= passthru.c \ protocol.c \ miniport.c \ passthru.rc 
    //...

So now you know what to do next?

Add NDIS.LIB to your project, add NDIS40, NDIS_MINIPORT_DRIVER, NDIS40_MINIPORT to pre-compile macros. And then build debug and release, you will get success except some warnings.

Points of Interest

This is my first DDK wizard, and DDK is hard for me to master. So this wizard can't be very good. I tested it all in WIN2K DDK. If I have enough time, I will write a NDIS project wizard. May support NIC, IM, TDI or so.

Finally, sorry for my poor English.

History

11-07-2003 - the wizard script can run now.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

SevenCat


Member
i have a dog.
i'm working on a game.
i 'm 中国江苏人。
Occupation: Web Developer
Location: China China

Other popular Macros and Add-ins articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 25 of 25 (Total in Forum: 25) (Refresh)FirstPrevNext
QuestionCompilation Unsuccesfull, Please Help. Pinmemberbnc23:03 20 Sep '08  
Joke你很强! Pinmemberbetree17:43 17 Sep '08  
General如何设置SevenCatDDK向导! Pinmembersusandy21:53 6 Mar '07  
GeneralWould you like something more generic? PinmemberAssarbad17:10 27 Oct '06  
GeneralYou GOOD PinmemberGeorgi Petrov2:49 15 Sep '06  
Generalvirtual sound card driver PinmemberAshok Jaiswal0:37 4 Sep '06  
GeneralPlease upgrade it [modified] PinmemberAli Tavakol3:56 15 Jul '06  
GeneralRe: Please upgrade it PinmemberSevenCat0:41 4 Sep '06  
GeneralGreat Article Pinmemberwwhh39322:03 4 Jun '06  
GeneralRe: Great Article Pinmembercdh9283:15 26 Jun '06  
GeneralDDK PinmemberTijo Joseph21:52 21 Nov '04  
GeneralRe: DDK PinmemberSevenCat5:06 22 Nov '04  
GeneralIt works, How you did this???? PinmemberGeorgi Petrov5:29 20 Aug '04  
GeneralRe: It works, How you did this???? PinmemberGeorgi Petrov5:35 20 Aug '04  
GeneralRe: It works, How you did this???? PinmemberSevenCat16:30 22 Aug '04  
GeneralRe: It works, How you did this???? PinmemberGeorgi Petrov1:50 26 Aug '04  
Generalunresolved external symbol __load_config_used Pinmemberpro1:08 29 Jul '04  
GeneralRe: unresolved external symbol __load_config_used Pinmemberjeremysay8:13 26 Apr '05  
GeneralRe: unresolved external symbol __load_config_used Pinmembersuperbinny23:50 27 Jul '05  
GeneralRe: unresolved external symbol __load_config_used PinmemberBocave5:35 25 Jun '07  
GeneralRe: unresolved external symbol __load_config_used PinmemberVincentKao4:39 2 Jul '07  
GeneralNice Idea Pinmemberbfadi5:23 16 Nov '03  
GeneralRe: Nice Idea PinmemberSevenCat3:46 17 Nov '03  
GeneralRe: Nice Idea Pinmemberbfadi12:51 18 Nov '03  
GeneralRe: Nice Idea PinmemberSevenCat20:53 18 Nov '03  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 14 Nov 2003
Editor: Smitha Vijayan
Copyright 2003 by SevenCat
Everything else Copyright © CodeProject, 1999-2009
Web21 | Advertise on the Code Project