www.digitalmars.com         C & C++   DMDScript  

c++.mfc - nafxcw.dll? what the... - dmicon1.ico

reply bw <bw_member pathlink.com> writes:
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


begin 0644 dmicon1.ico
M```!``$`("`0``````#H` ``% ```" ```` ````0`````$`!`````````(`
M``````````````````````````````"```"````` (`` ````(`` `"` ```


MB`\/^(?_\` (C___"("(B( /"("(?_^/?W___X>'B/_X_XAXA___________
M____<(C_____________]W?__W=P]_]_=_]______XB(CXAX 'AXB( 'A___
M__^'_X>(A_!X>/B'AX?_____A_]XB(?X>'C_>`>'_____X?_>(B(<'AP>(<'
MA_____^'_X=W^(?W<(]X?X?_____B(B/=___^/C___^'_____W=W_W?___?_
M___W=_____EXF(=W=W=W=W=XB8A____YF'B(B(=W=WB(B(>9?___^9F9B(F9
MF9F9F(B9F7____F9F9F8B(B(B)F9F9E____YF8F9F9F9F9F9F9F9?___^9F(
MF9F9F9F(F9F9F8____F9F9F9F9F8F8F9F9F/___YF9F9F9F9F(B)F9F9C___
M^9F9F9F9F9F(F9F9F8____=W=W=W=W=W=W=W=W=____XB(B(]X]X^(_X__^'
M____<'__\(>/B/B'<G_WB'___W!___B'CXCXB("'>`B/__]P?_]P=PB(B']X
M__^'____^(B(A_]W?X?_]___=___________________________________
M__________\`````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
!````
`
end
Sep 13 2002
parent reply user domain.invalid writes:
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?
Sep 14 2002
parent bw <bw_member pathlink.com> writes:
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 here's some linker options, top one makes a big dang file for sure /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
Sep 14 2002