Einzelnen Beitrag anzeigen

Olli
(Gast)

n/a Beiträge
 
#7

Re: DDKWizard - nur was für Faule ;)

  Alt 11. Aug 2007, 19:41
Zitat von Neotracer64:
Es muss natürlich ein Pointer zu WCHAR sein also &KeyName.
Aber davon stand weit und breit nichts im Buildlog.
Was habe ich falsch eingestellt?
Eher "WCHAR Keyname[Groesse]" oder "WCHAR* KeyName". Einfach ein "&" davor hilft nicht, weil ein WCHAR eben nur 2 Byte halten kann. Ist der Wert des WCHAR ungleich 0, sollte der Spaß schon fehlschlagen.

Zitat von Neotracer64:
Code:
------ Build started: Project: test2.WLH, Configuration: WLH checked (PREfast) Win32 ------
Performing Makefile project actions
OSR DDKBUILD.CMD V7.0 RC1 (2007-05-30) - OSR, Open Systems Resources, Inc.
DDKBLD: Clearing %VS_UNICODE_OUTPUT% ...
DDKBLD: WLH (checked) using the Windows Vista/Longhorn Server DDK and %WLHBASE%
[color=darkgreen]DDKBLD: Directory: G:\WinDDK projects\test2\test2 + argument(s): -cZ -prefast[/color]
DDKBLD: WLHBASE: G:\WinDDK
DDKBLD: Run prefast build -Ze -cZ -e for checked version in .
path contains nonexistant c:\windows\syswow64, removing
BUILD: Compile and Link for x86
BUILD: Start time: Sat Aug 11 19:01:33 2007
BUILD: Examining g:\winddk~2\test2\test2 directory for files to compile.
    g:\winddk~2\test~1\test~1 
BUILD: Compiling and Linking g:\winddk~2\test2\test2 directory
Compiling resources - drvversion.rc
Compiling - test2.cpp
Compiling - test2.cpp
Linking Executable - objchk_wlh_x86\i386\test2.sys
errors in directory g:\winddk~2\test2\test2
[color=red]link : error LNK1181: cannot open input file 'objchk_wlh_x86\i386\test2.obj'[/color]
BUILD: Finish time: Sat Aug 11 19:01:42 2007
BUILD: Done
    5 files compiled - 1 Warning
    1 executable built - 1 Error
DDKBLD: The PREfast logfile is "PREfast_defects_chk_wlh_x86.xml"!
DDKBLD: Build complete
DDKBLD: Building browse information files
Build log was saved at "file://g:\WinDDK projects\test2\test2\BuildLog.htm"
test2.WLH - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Ich sehe da "g:\winddk~2\" - wie du vielleicht festgestellt hast, hat DDKBUILD.CMD noch die Parameter korrekt übergeben (grüne Zeile), was aber nix hilft, weil einige der DDK-Tools allergisch gegen Namen mit Leerzeichen sind, weshalb (rote Zeile) die Objektdatei vom Linker nicht gefunden wird. Lösung: umbenennen in einen 8.3-Namen ohne Leerzeichen

Werde es zur DDKWizard-FAQ hinzufügen.
  Mit Zitat antworten Zitat