Thread overview
nafxcw.dll? what the... - dmicon1.ico
Sep 14, 2002
bw
Sep 14, 2002
user
Sep 14, 2002
bw
September 14, 2002
well i'm humping right along... got everything linked, figured out the rcc.. discovered it does NOT bind the res file but the linker does that, pretty sneaky hehehe... anyway i got a decent looking .exe the resources and versioninfo all show up in properties BUT... the dang app wants nafxcw.dll to run... now i'm assuming it probaby really wants an MFC42.DLL or something like that right?  but i forgot to tell it something somewhere along the line i guess...

hey i made an icon i want to put in all my apps on the about dialog i make with dmc++ what do you think?  i'll try to attach it.

really appreciate this, and all the work you obviously put into this project.  i
maybe able to step up to a lot better version of mfc pretty cheap it looks like.
got to find me some new books too.
thanks,
bw


September 14, 2002
bw wrote:
> well i'm humping right along... got everything linked, figured out the rcc..
> discovered it does NOT bind the res file but the linker does that, pretty sneaky
> hehehe... anyway i got a decent looking .exe the resources and versioninfo all
> show up in properties BUT... the dang app wants nafxcw.dll to run... now i'm
> assuming it probaby really wants an MFC42.DLL or something like that right?  but
> i forgot to tell it something somewhere along the line i guess...
> 
> hey i made an icon i want to put in all my apps on the about dialog i make with
> dmc++ what do you think?  i'll try to attach it.
> 
> really appreciate this, and all the work you obviously put into this project.  i
> maybe able to step up to a lot better version of mfc pretty cheap it looks like.
> got to find me some new books too.
> thanks,
> bw
> 
> 
> 

Are you sure you got the compiler flags right for your app?

September 14, 2002
In article <alutc2$1cqn$1@digitaldaemon.com>, user@domain.invalid says...

>Are you sure you got the compiler flags right for your app?
>

well, i've really discovered a lot!  the problem was i set the imports in my DEF file to nafxcw which was wrong, that's why it was looking for that DLL... once i figured that out, then used either winspool or shell32 i got my app to run... looks good!!  little bit of difference in the dialogs now, and i have a nasty bug on exit i always get a page fault.  this code comes from mfc2.0 so i'm sure there have been a lot of changes i'll have to spend a little more time i have a decent book that covers later versions i think.

tried both these compiler flags both do fine CFLAGS_R_WEXE=-Jm -w- -Ae -o -mn -DWIN32 -D_WINDOWS -D_MBCS # CFLAGS_R_WEXE = -Jm -w- -mN -DNDEBUG -WA -D__NT__ -D_WIN32

here's some linker options, top one makes a big dang file for sure # LFLAGS_R_WEXE = /CO /L /M:ADDRESS :GROUP /X /NOI /DE /DET /PACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 LFLAGS_R_WEXE = /ENTRY:WinMainCRTStartup

here's the definitions file maybe this is where my crash-bug is i'm not real up
on these...
EXETYPE      NT
SUBSYSTEM    WINDOWS,4.0
RC

CODE         PRELOAD MOVEABLE DISCARDABLE
DATA         PRELOAD MOVEABLE MULTIPLE

IMPORTS _OpenPrinterA@12=winspool.OpenPrinterA
IMPORTS _DocumentPropertiesA@24=winspool.DocumentPropertiesA
IMPORTS _ClosePrinter@4=winspool.ClosePrinter
IMPORTS _DragQueryFileA@16=shell32.DragQueryFileA
IMPORTS _DragFinish@4=shell32.DragFinish
IMPORTS _SHGetFileInfoA@20=shell32.SHGetFileInfoA
IMPORTS _ExtractIconA@12=shell32.ExtractIconA

thanks again i'm off to bed it's nearly dawn,
bw