Re: another question for using ntstrsafe.lib

From: Mark Roddy (markr_at_hollistech.com)
Date: 07/20/04


Date: Mon, 19 Jul 2004 21:08:19 -0400

To use the library versions of the kernel-mode safe string functions
  1.. Define NTSTRSAFE_LIB before including the new header file, as shown.
#define NTSTRSAFE_LIB
#include <ntstrsafe.h>2.. In your project's sources file, add a TARGETLIBS
entry for $(DDK_LIB_PATH)\ntstrsafe.lib

Did you follow these two steps?

-- 
=====================
Mark Roddy
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
markr@hollistech.com
"michelle" <michelle@discussions.microsoft.com> wrote in message
news:95958142-AF83-4658-BE70-9591AE6DA5BB@microsoft.com...
>
> these wctomb.obj and mbtowc.obj files are not mine
> Do I need to include some other files apart from ntstrsafe.h for this to
go away ?
>
> TIA
>
> "shadab" wrote:
>
> >
> > while using ntstrsafe.lib in my w2k driver I get the following error :
> > ntstrsafe.lib(wctomb.obj) : error LNK2019: unresolved external symbol
_RtlUnicodeToMultiByteN@20 referenced in function _wctomb
> > ntstrsafe.lib(mbtowc.obj) : error LNK2019: unresolved external symbol
_RtlAnsiCharToUnicodeChar@4 referenced in function _mbtowc
> >
> > My DDK build is windows xp DDK 2600.1106
> > What could be the problem
> >
> > TIA
> >


Relevant Pages

  • Re: Need Win2k DDK
    ... do you happen to know how to get this header file? ... The 2000 DDK is beyond obsolete. ... Windows Filesystem and Driver Consulting ... I need to patch an open source device driver targeted to Windows 2000 ...
    (microsoft.public.development.device.drivers)
  • RE: another question for using ntstrsafe.lib
    ... "shadab" wrote: ... > My DDK build is windows xp DDK 2600.1106 ... > TIA ...
    (microsoft.public.development.device.drivers)
  • another question for using ntstrsafe.lib
    ... while using ntstrsafe.lib in my w2k driver I get the following error: ... My DDK build is windows xp DDK 2600.1106 ... TIA ...
    (microsoft.public.development.device.drivers)
  • Re: link of the day
    ... AUDIODDK.DOC follows, from the W98 DDK. ... there is no support within the DOS and Win 3.x drivers. ... There are known issues with WDM audio 1.0, ... of the Microsoft Windows 98 DDK. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET
    ... >> compiler and tools for driver development. ... > in MSDN with an article titled New in the DDK for Windows XP: ... > build environment. ...
    (microsoft.public.development.device.drivers)