Hi Everyone,

I am trying to use "DrvQueryJobAttributes" in VC++ .net 2005. But it is
giving me following error:

Error 1 error LNK2019: unresolved external symbol
_DrvQueryJobAttributes referenced in function __catch$_main$0 main.obj
Error 2 fatal error LNK1120: 1 unresolved externals
D:\VC\PrintProcessor\Debug\PrintProcessor.exe 1

Can anyone help me to resolve above error.

(I've DDK within my system).
Regards,
Chirag.

Re: Linking error with DDK function... by Tim

Tim
Thu Jun 07 01:34:07 CDT 2007

chirag kapadiya <chirag kapadiya@discussions.microsoft.com> wrote:
>
>I am trying to use "DrvQueryJobAttributes" in VC++ .net 2005. But it is
>giving me following error:
>
>Error 1 error LNK2019: unresolved external symbol
>_DrvQueryJobAttributes referenced in function __catch$_main$0 main.obj
>Error 2 fatal error LNK1120: 1 unresolved externals
>D:\VC\PrintProcessor\Debug\PrintProcessor.exe 1
>
>Can anyone help me to resolve above error.
>
>(I've DDK within my system).

What on earth are you trying to do? DrvQueryJobAttributes is a function
that is provided by a printer's interface DLL, and gets called by a print
processor. There is no "DrvQueryJobAttributes" API; you have to find and
load the interface DLL for the printer you want.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

RE: Linking error with DDK function... by WeDoDrivers

WeDoDrivers
Sun Jul 08 04:18:03 CDT 2007

Make sure you properly declare this function with __stdcall. Then use a .def
file to define at as export, rather than using the keywords. Otherwise you
will get a mismatch with the underscore, etc...
-Jordan
----------------------------------
WeDoDrivers.com
"The Printer Driver Experts"
We handle any size printer driver project, large or small.


"chirag kapadiya" wrote:

> Hi Everyone,
>
> I am trying to use "DrvQueryJobAttributes" in VC++ .net 2005. But it is
> giving me following error:
>
> Error 1 error LNK2019: unresolved external symbol
> _DrvQueryJobAttributes referenced in function __catch$_main$0 main.obj
> Error 2 fatal error LNK1120: 1 unresolved externals
> D:\VC\PrintProcessor\Debug\PrintProcessor.exe 1
>
> Can anyone help me to resolve above error.
>
> (I've DDK within my system).
> Regards,
> Chirag.
>

Re: Linking error with DDK function... by Maxim

Maxim
Sun Jul 08 11:41:03 CDT 2007

> Make sure you properly declare this function with __stdcall. Then use a .def
> file to define at as export, rather than using the keywords.

I second this.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com