Hello Newsgroup!

I am new to building drivers. My project is to develop an accounting
print processor for PostScript print drivers. In my opinion it is the
best way to account the job in the print processor where the data goes
to printer port. Is there a better way?
I am modifying the src\print\genprint\raw.c file in the loop where we
are sending the data. I'm trying to read in the data stream for PS
EndPage commands.
For this a wanted to do some debugging output, so i wanted to write it
in a file. fopen(), fwrite() and so on.
I have included the <stdio.h> and the compiling is fine. But on linking
i get an error:

BUILD: Linking e:\winddk\2600~1.110\src\print\genprint directory Linking
Executable - objchk_w2k_x86\i386\genprint.dll for i386
raw.obj : error LNK2019: unresolved external symbol __imp__fopen
referenced in function _PrintRawJob@12
objchk_w2k_x86\i386\genprint.dll : error LNK1120: 1 unresolved externals
BUILD: Done


Then i tried to include the libcpmt.lib in the sources file. But is the
same error. What i'm doing wrong?


--

Best regards,


Lucas Pleß
heddier electronc GmbH

RE: PrintProcessor Linking fails by dsarma

dsarma
Tue May 31 13:46:42 CDT 2005

------=_NextPart_0001_CE7E0742
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Try using

USE_MSVCRT=1

in the sources file.

Thanks.


Deba Sarma
MICROSOFT DDK Print Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_CE7E0742
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Try using
\par
\par USE_MSVCRT=1
\par
\par in the sources file.
\par
\par Thanks.
\par
\par
\par Deba Sarma
\par MICROSOFT DDK Print Developer Support
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_CE7E0742--


Re: PrintProcessor Linking fails by lpless

lpless
Tue May 31 16:58:41 CDT 2005

Thanks for your answer.
I tried your suggestion, but without success. The error is still the same.

Any other suggestions?
Are there other switches to set? Or what library i have to include?

--

Lucas Pleß
heddier electronic GmbH

Re: PrintProcessor Linking fails by dsarma

dsarma
Thu Jun 02 17:14:24 CDT 2005

------=_NextPart_0001_DD70A575
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Add the following line in the sources file.

$(SDK_LIB_PATH)\msvcrt.lib


Deba Sarma
MICROSOFT DDK Print Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_DD70A575
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Add the following line in the sources file.
\par
\par $(SDK_LIB_PATH)\\msvcrt.lib
\par
\par
\par Deba Sarma
\par MICROSOFT DDK Print Developer Support
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_DD70A575--


Re: PrintProcessor Linking fails by Ken

Ken
Fri Jun 03 13:45:01 CDT 2005

Add OLDNAMES.LIB to TARGETNAMES.LIB

"Lucas Pleß" <lpless@newsgroup.nospam> wrote in message
news:%23To5cybZFHA.2128@TK2MSFTNGP15.phx.gbl...
> Hello Newsgroup!
>
> I am new to building drivers. My project is to develop an accounting
> print processor for PostScript print drivers. In my opinion it is the
> best way to account the job in the print processor where the data goes
> to printer port. Is there a better way?
> I am modifying the src\print\genprint\raw.c file in the loop where we
> are sending the data. I'm trying to read in the data stream for PS
> EndPage commands.
> For this a wanted to do some debugging output, so i wanted to write it
> in a file. fopen(), fwrite() and so on.
> I have included the <stdio.h> and the compiling is fine. But on linking
> i get an error:
>
> BUILD: Linking e:\winddk\2600~1.110\src\print\genprint directory Linking
> Executable - objchk_w2k_x86\i386\genprint.dll for i386
> raw.obj : error LNK2019: unresolved external symbol __imp__fopen
> referenced in function _PrintRawJob@12
> objchk_w2k_x86\i386\genprint.dll : error LNK1120: 1 unresolved externals
> BUILD: Done
>
>
> Then i tried to include the libcpmt.lib in the sources file. But is the
> same error. What i'm doing wrong?
>
>
> --
>
> Best regards,
>
>
> Lucas Pleß
> heddier electronc GmbH



Re: PrintProcessor Linking fails by lpless

lpless
Fri Jun 03 14:24:50 CDT 2005

Thanks, that worked for me!


--

Lucas Pleß