Re: how to link library made by VS with driver using DDK environment
- From: "Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx>
- Date: Tue, 25 Apr 2006 22:25:47 +0400
You cannot. Rebuild this library source for kernel mode.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com
"remedius" <remedius@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8DB3C81A-3632-49C1-8195-95AD871C5141@xxxxxxxxxxxxxxxx
Hello!
I have a dll library (AXACAC.dll) whuch was made in VS project. This dll
exports one function:
#ifdef __cplusplus
extern "C" {
#endif
#pragma once
#ifdef WIN_EXPORTSN
#define WIN_API __declspec(dllexport)
#else
#define WIN_API __declspec(dllimport)
#endif
WIN_API void CreateRasterFile (const char *, const char *);
#ifdef __cplusplus
}
#endif
And I try to import this function in the DDK sample - unidrv interface
plug-in:
__declspec(dllimport) void CreateRasterFile (const char *, const char *);
In my src file I include my *.lib file as:
TARGETLIBS= ..\AXACAC.lib
But when I try to build DDK sample I have the following error:
error LNK2019: unresolved external symbol __imp__CreateRasterFile@8
referenced in function _OEMSendPage@4
..\..\i386\VPrinter.dll : fatal error LNK1120: 1 unresolved externals
Could you suggest something? May be you have ever had the same problems...
.
- Prev by Date: Re: How to install device filter driver for HID keyboard?
- Next by Date: How to run HCT iscsi configuration setup on amd64 machine
- Previous by thread: Re: how to link library made by VS with driver using DDK environment
- Next by thread: RE: how to link library made by VS with driver using DDK environment
- Index(es):
Relevant Pages
|