Look at the UMDF samples - there are new directives you can add to your
sources files to tell the WDK that you’re trying to build binaries
compatible with XP.
We used:
WIN32_WINNT_VERSION=$(LATEST_WIN32_WINNT_VERSION)
_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP)
NTDDI_VERSION=$(LATEST_NTDDI_VERSION)
-p
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Daniel E. Germann
Sent: Monday, December 18, 2006 3:40 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Calling WinUSB from an application
Well, supporting WinUSB from both Windows XP and Windows Vista is
getting
more interesting.
I have a DLL that talks to our device on XP just fine (less the bulk
endpoints, which I’m going to use WinUSB for). I’ve been building the
DLL
using the Windows Server 2003 SP1 DDK (3790.1830). I thought I’d cut
over
to the Vista RTM WDK (6000) before tackling WinUSB to make sure there
were
no “hiccups”.
Unfortunately, there were. I can build my DLL with the WDK, but it
won’t
run on XP now because there are unsatisfied external references to
MSVCRT.DLL:
__CxxFrameHandler3
_except_handler4_common
It looks like these references are due to the new compiler version in
the
WDK (Visual Studio 2005 vintage, I presume). On XP systems, the
installed
version of MSVCRT.DLL doesn’t include these entry points.
It seems like my only option is to install Visual Studio 2005 and hope
the
REDIST directory includes a copy of MSVCRT.DLL that I can install
side-by-side with my DLL. Is that the “official recommended” approach?
And, if so, what do I do when I start building my device co-installer
and
“EnumPropPages32” DLLs from the WDK, and still need to support XP
systems?
I don’t think WFP will let me update the MSVCRT.DLL in SYSTEM32…
-Dan
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer