forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Winspool.lib (porting woe #5)

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
JugoslavDujic



Joined: 10 Nov 2005
Posts: 7

PostPosted: Wed Nov 23, 2005 7:34 am    Post subject: Winspool.lib (porting woe #5) Reply with quote

OK, the port finally compiles and now I'm resolving linker problems.

I'm using few APIs from Winspool.lib (OpenPrinterA, ClosePrinter, DocumentPropertiesA) but I can't find the way to make the linker happy. Winspool.lib is import library for (AFAIK) Winspool.drv. I'm building Win32 dll from VS.NET environment, and on adding

-addobj:Winspool.lib

Linker complains that it cannot find "Winspool.lib". OTOH, If I add:

-addobj:"C:Program files...Winspool.lib"

it complains about

*** Corrupt coff object: WINSPOOL.DRV

I'm having similar issues with Ole32.lib (CoInitialize, CoTaskMemFree). /IMPORT_LIB compiler switch doesn't help either.




--
Jugoslav
_________________
%2D%2D%0D%0AJugoslav
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Fri Nov 25, 2005 1:14 pm    Post subject: Winspool.lib (porting woe #5) Reply with quote

Jugoslav

From memory, you will need header information for compiling (as in win32api.ins etc). /IMPORT_LIB is not relevant. No special compiler switches are required.

When linking, try presenting the the name of the DLL (nothing before it) on the SLINK command line.
In a script or interactive mode just use lo <DLLname>.

If this doesn't work then let me know. Alternatively the SLINK documentation is very comprehensive.

Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group