beautypg.com

6 translate source code, 1 software requirements, 2 preparing the translation – Siemens 7 User Manual

Page 26: 3 compiler flags, Translate source code, Software requirements, Preparing the translation, Compiler flags, 6translate source code

background image

Multiplexer Driver Developer’s Guide

6 Translate Source Code

s

Mux_Drv_DevGuide_v07

Page 26 of 36

2006-9-27

Confidential / Released

6

Translate Source Code

6.1

Software Requirements

The WinMux build environment has been designed to work together with a Microsoft Visual Studio 6.0 SP3 or
higher and the Microsoft Windows XP SP1 DDK. It is possible to use a Windows 2000 DDK as well, but in this
case adaptations to the different build control files might be necessary.

6.2

Preparing the Translation

1

Create the environment variables “WINMUXVSTUDIOROOT” and “WINMUXDDKROOT” containing the path
to the root of your Visual Studio and Windows DDK installation. Alternatively you can edit the file
“driver\dir_env.cmd” and enter the correct paths to the DDK and the VC 6.0 there.

2

Open the workspace sermux in the root directory. Select batch build.

3

The executable files can be found under lib\wdm\[fre|chk] _wxp_x86\i386.

Note: The DDK is a software tool for Windows driver development.

6.3

Compiler Flags

There is only one compiler flag “MUX_MANUAL” for a conditional compile of the driver. With this compiler flag
set the driver can be compiled in a special manual version where opening and closing of the multiplexer can be
controlled via special DeviceIoControl() commands instead of automatic control via the opened virtual channels.
This manual version is used for internal automated module testing and is not relevant for usual driver operation.