library for sprintf

Hi
I’m trying to use sprintf in a my driver for NT4. But I can not find the
library to add to the TARGETLIBS in Sources. I keep getting link error for
the unresolved external symbol.
Any idea which library or what step?
Thanks
Miki


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> Hi

I’m trying to use sprintf in a my driver for NT4. But I can not find the
library to add to the TARGETLIBS in Sources. I keep getting link error for
the unresolved external symbol.
Any idea which library or what step?
Thanks
Miki

It’s not a good idea to use any C-runtime functions in your driver. Use
RtlXXX
functions for string/memory operations.

Daniel


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Well, It’s in one of these, ntoskrnl.lib hal.lib int64.lib wmilib.lib, but
that may not be the problem. Look at how you have calling conventions set up
for the compiler. I believe you should be using __stdcall.

Gary G. Little
Sr. Staff Engineer
Broadband Storage, LLC
xxxxx@broadstor.com
xxxxx@delphieng.com

-----Original Message-----
From: mikia@tx.technion.ac.il [mailto:mikia@tx.technion.ac.il]
Sent: Sunday, March 04, 2001 9:59 PM
To: NT Developers Interest List
Subject: [ntdev] library for sprintf

Hi
I’m trying to use sprintf in a my driver for NT4. But I can not find the
library to add to the TARGETLIBS in Sources. I keep getting link error for
the unresolved external symbol.
Any idea which library or what step?
Thanks
Miki


You are currently subscribed to ntdev as: xxxxx@delphieng.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi there!

Try using libcntpr.lib… Should work. Or use _sprintf instead of sprintf…

Greetings,
Alex


Sent through GMX FreeMail - http://www.gmx.net


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

sprintf? Make sure that you’re not supposed to be using snprintf for
safety/security.

  • Danilo

You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com