VC6 + DDKビルド環境の設定

 

1. VC6IDE [TestDrv]メイクファイルプロジェクトを作成し
、コードの内容をTestDrv.h、TestDrv.cppと書き込みコードを追加し、わずか2
[プロジェクト]メニューを選択し、設定したプロジェクト3 - > [設定]

    コマンドライン:
    MakeDrv D:\ WINDDK \ 2600 FRE

    すべてのオプションを再構築します。
    -nmake / A

    出力ファイル名:
    TestDrv.sys

プロジェクトMakeDrv.batの下にディレクトリを作成します。4.

@echo off
if "%1"=="" goto usage
if "%2"=="" goto usage
if not exist %1\bin\setenv.bat goto usage
set ProjectDir=%cd%
call %1\bin\setenv %1 %2
%ProjectDir:~0,2%
cd %ProjectDir%
build -b -w %3 %4 %5 %6 %7
goto exit

:usage
echo usage   MakeDrv DDK_dir fre/chk [build_options]
:exit

メイクファイルを作成し、以下の文書の内容である5、コンテンツが固定されています。

#
# DO NOT EDIT THIS FILE!!!  Edit .\sources. if you want to add a new source
# file to this component.  This file merely indirects to the real make file
# that is shared by all the components of NT OS/2
#
!INCLUDE $(NTMAKEENV)\makefile.def

6.ソースファイルを作成し、ここでは文書の内容です。

TARGETNAME=TestDrv
TARGETTYPE=DRIVER
TARGETPATH=obj

INCLUDES=.\
SOURCES = TestDrv.c

7.今、あなたはコンパイルすることができます。

84元記事公開 ウォン称賛15 ビューに14万+を

おすすめ

転載: blog.csdn.net/TDGX2004/article/details/7266341