C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 31st, 2003, 11:29 AM
theRaginCajun theRaginCajun is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: USA
Posts: 144 theRaginCajun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
mfc vs non mfc?

Hi everyone,

Just wondering - in vc++, I want to create a dll that'll run on win98 and later.

If I chose an MFC dll project will that be able to run correctly?

Or should I use a win32 dll project?

Or if I chose MFC can I just use "standard windows libraries" at compilation time but still be able to use MFC?

Or will MFC projects never work unless the target computer has the .NET framework installed?

Thanks for your advice, I am perplexed.

Reply With Quote
  #2  
Old October 31st, 2003, 01:18 PM
mitakeet's Avatar
mitakeet mitakeet is offline
I'm Baaaaaaack!
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jul 2003
Location: Maryland
Posts: 5,319 mitakeet User rank is First Lieutenant (10000 - 20000 Reputation Level)mitakeet User rank is First Lieutenant (10000 - 20000 Reputation Level)mitakeet User rank is First Lieutenant (10000 - 20000 Reputation Level)mitakeet User rank is First Lieutenant (10000 - 20000 Reputation Level)mitakeet User rank is First Lieutenant (10000 - 20000 Reputation Level)mitakeet User rank is First Lieutenant (10000 - 20000 Reputation Level)mitakeet User rank is First Lieutenant (10000 - 20000 Reputation Level)mitakeet User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 22 h 4 m 31 sec
Reputation Power: 212
Dunno for sure, but I suspect that if you choose to statically link your libraries you can do pretty much as you like. MFC is a set of classes to simplify your Windows programming (that is arguable, but I think it is the intention). The main reason to statically link your executable (I think the same works for a DLL object) is to be able to run on machines that lack the needed DLLs. Otherwise you have to create a distribution that is smart enough to only install the needed DLLs. You can sometimes get away with having all the needed DLLs in the same directory as the executable. Generally, though, statically linking your exe/dll will also wind up with much smaller distribution because the compiler is ususally smart enough to only copy actually used DLL functionality into your program.
__________________

My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
Free code: http://sol-biotech.com/code/.
Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
--Me, I just made it up

The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
--George Bernard Shaw

Reply With Quote
  #3  
Old October 31st, 2003, 03:21 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
Posts: 8,978 Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 6 Days 22 h 14 m 39 sec
Reputation Power: 3561
MFC projects require an MFC dll. MFC42.dll comes installed with most your Windows Installs, so you don't have to distribute it necessarily. The thing to be careful about is if you release a debug build instead of a release build. A debug build uses MFC42d.dll, which is installed only if you install VC++. A release build links to MFC42.dll which is installed by default on computers >= Windows NT 4.0, Win 98. The problem is that there are actually a few versions of this DLL floating around and it depends on a few other DLLs such as MSVCRT.dll, KERNEL32.dll and USER32.dll, all of which have newer versions too. If you don't use newer MFC functions, then you can count on your code working elsewhere too. However, if you use a newer MFC function, you might get an "Ordinal could not be located in MFC42.dll" message, if the DLL on the target machine is older that the one on which you compiled the EXE on and doesn't have the newer MFC function in it.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Diary of a first time dog owner <-- my cousin's blog

Reply With Quote
  #4  
Old October 31st, 2003, 03:34 PM
m0dr0cker m0dr0cker is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 118 m0dr0cker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
Hmmm, I've dealt with this before. At one point I could have sworn checking the "Release" box in Batch Build options, yet it suck my executable in the Debug folder.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > mfc vs non mfc?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap