IF I use any time/date function for calling in a .sys
file, I always get an error :->

error LNK2001: unresolved external symbol __imp___strdate
error LNK2001: unresolved external symbol __imp___tzset

It is very essential enough to me to call those functions.
, so, Please help me regarding this. and also, Please
help me regarding creating a VC++ project for making
a .sys file ???

Re: About linking date/time related function in a .sys file. by Mark

Mark
Tue Sep 02 06:11:55 CDT 2003

On Tue, 2 Sep 2003 02:10:05 -0700, "sudhanshu deshmukh"
<sudhanshudeshmukh402@hotmail.com> wrote:

>IF I use any time/date function for calling in a .sys
>file, I always get an error :->
>
>error LNK2001: unresolved external symbol __imp___strdate
>error LNK2001: unresolved external symbol __imp___tzset
>
>It is very essential enough to me to call those functions.
>, so, Please help me regarding this. and also, Please
>help me regarding creating a VC++ project for making
>a .sys file ???

The kernel API is defined by ntddk.h and documented in the DDK. Those
are the functions you can call. There is *very limited* C runtime
support in the kernel, basically defined by the file string.h and
strsafe.h in the ddk.

See my website (www.hollistech.com) for information on one way to
build drivers using visual studio.




=====================
Mark Roddy
Windows XP/2000/NT Consulting, Microsoft DDK MVP
Hollis Technology Solutions 603-321-1032
www.hollistech.com
markr@hollistech.com
For Windows Device Driver Training: see www.azius.com