|
-
Apr 27th, 2001, 02:13 AM
#1
An MFC program will run on any computer that has the mfc dll's installed. And mainly only computers with VC++ on it, has em. I suggest you learn to program for real and learn the api.
-
Apr 27th, 2001, 07:48 AM
#2
-
Apr 27th, 2001, 07:54 AM
#3
Monday Morning Lunatic
As an alternative, you can also use WTL -- the Windows Template Library. This is for VC++6 only, and comes with the Platform SDK.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 27th, 2001, 12:31 PM
#4
Lively Member
using the statically linking library worked. thanks.
and also my program is alot more than a hello world and it still only is about 38KB compiled, so i guess you were wrong about that.
Chimpface considering that my class is called Programming Windows with MFC, i would think just using the API instead wouldn't make alot of sense, what do you think??
-
Apr 27th, 2001, 12:39 PM
#5
Monday Morning Lunatic
Well...we didn't know what your class was, we were merely suggesting the best way to go about things 
And a quickie test of a release-mode program:
DLL - 50K
Static - 443K
No contest
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 27th, 2001, 01:54 PM
#6
Guru
By the way... EXEs compiled in VC++ 6 are much bigger than VC++ 5 compiled EXEs, but you can add the option /OPT:NOWIN98 (VC++ 6 only) to make the EXE size closer to the size compiled with VC++ 5.
There was an article about this in some Microsoft page by Matt Pietrek (I think) but I lost the URL. 
Code:
#pragma comment(linker, "/OPT:NOWIN98")
// to pretend it's a change in the code :rolleyes:
-
Apr 29th, 2001, 01:55 PM
#7
Monday Morning Lunatic
That's weird 
Also there's a technical article on MSDN about the TINYCRT library; well nice
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|