www.digitalmars.com         C & C++   DMDScript  

c++.mfc - winspool.lib shell32.lib

reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
Can someone send my winspool.lib and shell32.lib that are compatible with
the dmc.
Oct 14 2002
next sibling parent reply bw <bw_member pathlink.com> writes:
In article <aoevot$p0m$1 digitaldaemon.com>, James Kirkham says...
Can someone send my winspool.lib and shell32.lib that are compatible with
the dmc.

i don't know if shell32.dll and winspool.drv came with my vc++ compiler or not, i kind of assumed they we're installed by the operating system... now that i think back i believe i finally just used this .def file to make the shell32.lib there were only 4 or 5 missing exports... LIBRARY SHELL32 EXETYPE NT SUBSYSTEM WINDOWS,4.0 VERSION 4.0 EXPORTS _DragQueryFileA 16=DragQueryFileA _DragAcceptFiles 8=DragAcceptFiles _DragFinish 4=DragFinish _SHGetFileInfoA 20=SHGetFileInfoA _ExtractIconA 12=ExtractIconA you just save it to a file named shell32.def then type implib shell32.lib shell32.def and you'll have a new shell32.lib file, stick it in one of the lib folders i put it in dm\lib but i guess it doesn't matter... long as the linker can find it, i think that's the idea. here's the winspool.def use it the same way may it serve you well... LIBRARY WINSPOOL EXETYPE NT SUBSYSTEM WINDOWS,4.0 VERSION 4.0 EXPORTS _OpenPrinterA 12=OpenPrinterA _DocumentPropertiesA 24=DocumentPropertiesA _ClosePrinter 4=ClosePrinter
Oct 14 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
There seems to be a problem with this.  On the last line I get this error
messages for both files (obviously the file names in the error message are
different) when using implib: "Error shell32.def(2): expected 'OS2' found
'identifier'".  What is going wrong?????

"bw" <bw_member pathlink.com> wrote in message
news:aof9j4$12rp$1 digitaldaemon.com...
 In article <aoevot$p0m$1 digitaldaemon.com>, James Kirkham says...
Can someone send my winspool.lib and shell32.lib that are compatible with
the dmc.

i don't know if shell32.dll and winspool.drv came with my vc++ compiler or

 i kind of assumed they we're installed by the operating system...
 now that i think back i believe i finally just used this .def file to make

 shell32.lib there were only 4 or 5 missing exports...

 LIBRARY      SHELL32
 EXETYPE      NT
 SUBSYSTEM    WINDOWS,4.0
 VERSION      4.0
 EXPORTS
 _DragQueryFileA 16=DragQueryFileA
 _DragAcceptFiles 8=DragAcceptFiles
 _DragFinish 4=DragFinish
 _SHGetFileInfoA 20=SHGetFileInfoA
 _ExtractIconA 12=ExtractIconA

 you just save it to a file named shell32.def then type
 implib shell32.lib shell32.def
 and you'll have a new shell32.lib file, stick it in one of the lib folders

 it in dm\lib but i guess it doesn't matter... long as the linker can find

 think that's the idea.

 here's the winspool.def use it the same way may it serve you well...

 LIBRARY      WINSPOOL
 EXETYPE      NT
 SUBSYSTEM    WINDOWS,4.0
 VERSION      4.0
 EXPORTS
 _OpenPrinterA 12=OpenPrinterA
 _DocumentPropertiesA 24=DocumentPropertiesA
 _ClosePrinter 4=ClosePrinter

Oct 14 2002
parent reply bw <bw_member pathlink.com> writes:
uh... are ya using os2? make sure the file begins at the line that says LIBRARY

In article <aofbpl$14tq$1 digitaldaemon.com>, James Kirkham says...
There seems to be a problem with this.  On the last line I get this error
messages for both files (obviously the file names in the error message are
different) when using implib: "Error shell32.def(2): expected 'OS2' found
'identifier'".  What is going wrong?????

Oct 14 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
Im using windows XP

"bw" <bw_member pathlink.com> wrote in message
news:aofcgk$15m6$1 digitaldaemon.com...
 uh... are ya using os2? make sure the file begins at the line that says

 In article <aofbpl$14tq$1 digitaldaemon.com>, James Kirkham says...
There seems to be a problem with this.  On the last line I get this error
messages for both files (obviously the file names in the error message


different) when using implib: "Error shell32.def(2): expected 'OS2' found
'identifier'".  What is going wrong?????


Oct 14 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
All I need to compile now are winspool.lib and shell32.lib (I got the
nafxcw.lib like you said) can you work out why implib gives that error on my
winxp machine?  I am so close.....

"James Kirkham" <JamesKirkham1 hotmail.com> wrote in message
news:aoferg$180a$1 digitaldaemon.com...
 Im using windows XP

 "bw" <bw_member pathlink.com> wrote in message
 news:aofcgk$15m6$1 digitaldaemon.com...
 uh... are ya using os2? make sure the file begins at the line that says

 In article <aofbpl$14tq$1 digitaldaemon.com>, James Kirkham says...
There seems to be a problem with this.  On the last line I get this



messages for both files (obviously the file names in the error message


different) when using implib: "Error shell32.def(2): expected 'OS2'



'identifier'".  What is going wrong?????



Oct 14 2002
parent reply bw <bw_member pathlink.com> writes:
not sure where the problem is, make sure you are saving the files as plain ascii
text?  if that won't work at all you can link in the imports in the .def file
for your app and ignore the missing lib files... this works for me but it's
easier to fix up the shell32 and winspool libs

save the build32.def file below and try it that way maybe..

compile&link with:
c:\dm\bin\sc.exe -L/ENTRY:WinMainCRTStartup,build32.def yourfile.cpp

--cut here--
NAME         BUILD32
DESCRIPTION  'MFC Win32 Application'
EXETYPE      NT
SUBSYSTEM    WINDOWS,4.0
VERSION      4.0
IMPORTS
_OpenPrinterA 12=winspool.OpenPrinterA
_DocumentPropertiesA 24=winspool.DocumentPropertiesA
_ClosePrinter 4=winspool.ClosePrinter
_DragQueryFileA 16=shell32.DragQueryFileA
_DragAcceptFiles 8=shell32.DragAcceptFiles
_DragFinish 4=shell32.DragFinish
_SHGetFileInfoA 20=shell32.SHGetFileInfoA
_ExtractIconA 12=shell32.ExtractIconA
--cut--

In article <aoffqp$192f$1 digitaldaemon.com>, James Kirkham says...
All I need to compile now are winspool.lib and shell32.lib (I got the
nafxcw.lib like you said) can you work out why implib gives that error on my
winxp machine?  I am so close.....

Oct 14 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
When I use the implib tool its says it is using the borland v5 version
implib.  I have this compiler installed and was wondering if this is the
right varient of implib to be using, are there any others (i.e. one that
comes with dmc?).  I will try your other suggestion though. Thanks for all
your support bw and jan!

"bw" <bw_member pathlink.com> wrote in message
news:aofhrq$1b6l$1 digitaldaemon.com...
 not sure where the problem is, make sure you are saving the files as plain

 text?  if that won't work at all you can link in the imports in the .def

 for your app and ignore the missing lib files... this works for me but

 easier to fix up the shell32 and winspool libs

 save the build32.def file below and try it that way maybe..

 compile&link with:
 c:\dm\bin\sc.exe -L/ENTRY:WinMainCRTStartup,build32.def yourfile.cpp

 --cut here--
 NAME         BUILD32
 DESCRIPTION  'MFC Win32 Application'
 EXETYPE      NT
 SUBSYSTEM    WINDOWS,4.0
 VERSION      4.0
 IMPORTS
 _OpenPrinterA 12=winspool.OpenPrinterA
 _DocumentPropertiesA 24=winspool.DocumentPropertiesA
 _ClosePrinter 4=winspool.ClosePrinter
 _DragQueryFileA 16=shell32.DragQueryFileA
 _DragAcceptFiles 8=shell32.DragAcceptFiles
 _DragFinish 4=shell32.DragFinish
 _SHGetFileInfoA 20=shell32.SHGetFileInfoA
 _ExtractIconA 12=shell32.ExtractIconA
 --cut--

 In article <aoffqp$192f$1 digitaldaemon.com>, James Kirkham says...
All I need to compile now are winspool.lib and shell32.lib (I got the
nafxcw.lib like you said) can you work out why implib gives that error on


winxp machine?  I am so close.....


Oct 15 2002
next sibling parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
I tried the other idea but when I try and run the app it says it cannot fin
winspool/shell32.dll.  I it not possiblt to just send me the lib files for
these?  I would buy the cd but I only 15 and cant afford to right now.

"James Kirkham" <JamesKirkham1 hotmail.com> wrote in message
news:aoh0hh$2p3l$1 digitaldaemon.com...
 When I use the implib tool its says it is using the borland v5 version
 implib.  I have this compiler installed and was wondering if this is the
 right varient of implib to be using, are there any others (i.e. one that
 comes with dmc?).  I will try your other suggestion though. Thanks for all
 your support bw and jan!

 "bw" <bw_member pathlink.com> wrote in message
 news:aofhrq$1b6l$1 digitaldaemon.com...
 not sure where the problem is, make sure you are saving the files as


 ascii
 text?  if that won't work at all you can link in the imports in the .def

 for your app and ignore the missing lib files... this works for me but

 easier to fix up the shell32 and winspool libs

 save the build32.def file below and try it that way maybe..

 compile&link with:
 c:\dm\bin\sc.exe -L/ENTRY:WinMainCRTStartup,build32.def yourfile.cpp

 --cut here--
 NAME         BUILD32
 DESCRIPTION  'MFC Win32 Application'
 EXETYPE      NT
 SUBSYSTEM    WINDOWS,4.0
 VERSION      4.0
 IMPORTS
 _OpenPrinterA 12=winspool.OpenPrinterA
 _DocumentPropertiesA 24=winspool.DocumentPropertiesA
 _ClosePrinter 4=winspool.ClosePrinter
 _DragQueryFileA 16=shell32.DragQueryFileA
 _DragAcceptFiles 8=shell32.DragAcceptFiles
 _DragFinish 4=shell32.DragFinish
 _SHGetFileInfoA 20=shell32.SHGetFileInfoA
 _ExtractIconA 12=shell32.ExtractIconA
 --cut--

 In article <aoffqp$192f$1 digitaldaemon.com>, James Kirkham says...
All I need to compile now are winspool.lib and shell32.lib (I got the
nafxcw.lib like you said) can you work out why implib gives that error



 my
winxp machine?  I am so close.....



Oct 15 2002
next sibling parent reply user domain.invalid writes:
James Kirkham wrote:
 I tried the other idea but when I try and run the app it says it cannot fin
 winspool/shell32.dll.  I it not possiblt to just send me the lib files for
 these?  I would buy the cd but I only 15 and cant afford to right now.

Yes done in a private mail.
Oct 15 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
I have no idea how to extract the files from this .j file!  What should I do
on my winxp machine to retrieve them?

<user domain.invalid> wrote in message
news:aoh4lo$2t20$1 digitaldaemon.com...
 James Kirkham wrote:
 I tried the other idea but when I try and run the app it says it cannot


 winspool/shell32.dll.  I it not possiblt to just send me the lib files


 these?  I would buy the cd but I only 15 and cant afford to right now.

Yes done in a private mail.

Oct 15 2002
next sibling parent Jan Knepper <jan smartsoft.us> writes:
James Kirkham wrote:

 I have no idea how to extract the files from this .j file!  What should I do
 on my winxp machine to retrieve them?

http://www.arjsoftware.com/
Oct 15 2002
prev sibling parent user domain.invalid writes:
James Kirkham wrote:
 I have no idea how to extract the files from this .j file!  What should I do
 on my winxp machine to retrieve them?
 
 <user domain.invalid> wrote in message
 news:aoh4lo$2t20$1 digitaldaemon.com...
 
James Kirkham wrote:

I tried the other idea but when I try and run the app it says it cannot


fin
winspool/shell32.dll.  I it not possiblt to just send me the lib files


for
these?  I would buy the cd but I only 15 and cant afford to right now.

Yes done in a private mail.


or direct download ftp://ftp.std.com/pub/arj/jar102x.exe Good luck
Oct 15 2002
prev sibling parent bw <bw_member pathlink.com> writes:
In article <aoh0qq$2pf1$1 digitaldaemon.com>, James Kirkham says...
I tried the other idea but when I try and run the app it says it cannot fin
winspool/shell32.dll.  I it not possiblt to just send me the lib files

wouldn't surprise me at all that microsoft would 'break' a bunch of older mfc apps by not including the winspool.drv and shell32.dll in WinXP, but are you positive they're nowhere on your system?
Oct 15 2002
prev sibling parent reply bw <bw_member pathlink.com> writes:
In article <aoh0hh$2p3l$1 digitaldaemon.com>, James Kirkham says...
When I use the implib tool its says it is using the borland v5 version
implib.  I have this compiler installed and was wondering if this is the
right varient of implib to be using, are there any others (i.e. one that
comes with dmc?).  I will try your other suggestion though. Thanks

yeah that makes sense i guess, borland's implib was running instead probably. though i kind of thought the .def commands were portable, so borland should make the libs. not sure dmc optilink could read it? but anyway you can get around all that for now by using the full path before any of the dmc tools, instead of using 'implib' use 'c:\dm\bin\implib' from the command line. you can stick that path in front of the other tools too just to make sure, or if you notice a borland message when something runs. good luck! i wish i'd started programming mfc when i was 15 i might actually understand it by now, lmao L8r, bw
Oct 15 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
There is no program in my dmc bin folder that is named implib, I am using
version 8.30c.  Whats going on?

"bw" <bw_member pathlink.com> wrote in message
news:aoh6p6$2vee$1 digitaldaemon.com...
 In article <aoh0hh$2p3l$1 digitaldaemon.com>, James Kirkham says...
When I use the implib tool its says it is using the borland v5 version
implib.  I have this compiler installed and was wondering if this is the
right varient of implib to be using, are there any others (i.e. one that
comes with dmc?).  I will try your other suggestion though. Thanks

yeah that makes sense i guess, borland's implib was running instead

 though i kind of thought the .def commands were portable, so borland

 the libs.  not sure dmc optilink could read it?  but anyway you can get

 all that for now by using the full path before any of the dmc tools,

 using 'implib' use 'c:\dm\bin\implib' from the command line.  you can

 path in front of the other tools too just to make sure, or if you notice a
 borland message when something runs.

 good luck!  i wish i'd started programming mfc when i was 15 i might

 understand it by now, lmao

 L8r,
 bw

Oct 15 2002
next sibling parent bw <bw_member pathlink.com> writes:
In article <aoh9hs$1bs$1 digitaldaemon.com>, James Kirkham says...
There is no program in my dmc bin folder that is named implib, I am using
version 8.30c.  Whats going on?

probably in the 'other tools' download... you'll probably need it eventually anyway i think there's a few other treats in there too.
Oct 15 2002
prev sibling parent bw <bw_member pathlink.com> writes:
In article <aoh9hs$1bs$1 digitaldaemon.com>, James Kirkham says...
There is no program in my dmc bin folder that is named implib, I am using
version 8.30c.  Whats going on?

sorry the download is called utilities, the resource compiler is in there too along with implib and a few others... same download page as everything else about halfway down.
Oct 15 2002
prev sibling parent reply bw <bw_member pathlink.com> writes:
if you don't have the mfc file with the nafxcw.lib already in it, you might want
to try again and make sure you snag the one at the very bottom of the page, i
think it's marked a 'head' version or 'work in progress' or something like that,
not the release version.   the 'head' version works fine for me, i never could
get a lib built out of the prj or most of the mak files in the other ones.

L8r,
bw
Oct 14 2002
parent reply Jan Knepper <jan smartsoft.us> writes:
That's probably because the HEAD (current development) is the only version I
change
and update every once and a while. I recently updated it (I think) and made
sure the
.prj/.opn file included actually build the nafxcw.lib and nafxcwd.lib. The .DLL
version(s) will not build at this time as the RTL has changed and I am not sure
if
there is a new .DLL+.LIB for the DLL version of the RTL available.



bw wrote:

 if you don't have the mfc file with the nafxcw.lib already in it, you might
want
 to try again and make sure you snag the one at the very bottom of the page, i
 think it's marked a 'head' version or 'work in progress' or something like
that,
 not the release version.   the 'head' version works fine for me, i never could
 get a lib built out of the prj or most of the mak files in the other ones.

 L8r,
 bw

Oct 14 2002
next sibling parent "James Kirkham" <JamesKirkham1 hotmail.com> writes:
There seems to be a problem with this.  On the last line I get this error
messages for both files (obviously the file names in the error message are
different) when using implib: "Error shell32.def(2): expected 'OS2' found
'identifier'".  What is going wrong?????

"Jan Knepper" <jan smartsoft.us> wrote in message
news:3DAB3144.D1C2B61E smartsoft.us...
 That's probably because the HEAD (current development) is the only version

 and update every once and a while. I recently updated it (I think) and

 .prj/.opn file included actually build the nafxcw.lib and nafxcwd.lib. The

 version(s) will not build at this time as the RTL has changed and I am not

 there is a new .DLL+.LIB for the DLL version of the RTL available.



 bw wrote:

 if you don't have the mfc file with the nafxcw.lib already in it, you


 to try again and make sure you snag the one at the very bottom of the


 think it's marked a 'head' version or 'work in progress' or something


 not the release version.   the 'head' version works fine for me, i never


 get a lib built out of the prj or most of the mak files in the other


 L8r,
 bw


Oct 14 2002
prev sibling parent bw <bw_member pathlink.com> writes:
In article <3DAB3144.D1C2B61E smartsoft.us>, Jan Knepper says...
I recently updated it (I think) and made sure the
.prj/.opn file included actually build the nafxcw.lib and nafxcwd.lib. The .DLL
version(s) will not build at this time as the RTL has changed and I am not sure
if
there is a new .DLL+.LIB for the DLL version of the RTL available.

i dunno about the rest but the nafxcw.mak in mfc\src\projects did fine with smake i rebuilt it once while i was fishing for a dll. i don't really have a big need for the dll right now i'm having real good results with the way it is. i hardly ever use a debugger anyway but that's good to know just in case that the debug lib is available, thanks.
Oct 14 2002