How to use MFC4.2 dll's with VC++ .NET 2003

V

Vijay Chegu

Hi all,

I have two simple question.

1)
When i build a simple mfc app using VC 7.1 it uses mfc 7.1 dll's.
Is there a way i can force it to build the app with mfc42 ?
bcoz i cannot use this app with out supporting dll's.

If i can do it, i can just give my app and not bother about
distributing mfc dll's. I dont want to do a static linking bloating my
application.

1a)
Does MS ships MFC 7 and MFC7.1 dll's with latest OS ?
how about in longhorn atleast ?

2)
What is the best way to distribute mfc 7.1 dll's ?
I have a really small GUI application. Will Install Shield be of any
help ?

Thanx and regards,
Vijay Chegu
//vijaycheguforcemfc42
 
D

David Lowndes

When i build a simple mfc app using VC 7.1 it uses mfc 7.1 dll's.
Is there a way i can force it to build the app with mfc42 ?
bcoz i cannot use this app with out supporting dll's.

You're unlikely to get away with not shipping supporting DLLs even if
you use MFC42 DLLs.
If i can do it, i can just give my app and not bother about
distributing mfc dll's. I dont want to do a static linking bloating my
application.

Try static linking - you might find it doesn't increase the size of
your application as much as you might expect.
Does MS ships MFC 7 and MFC7.1 dll's with latest OS ?

Not as far as I know.
how about in longhorn atleast ?

Whoa, you're optimistic
What is the best way to distribute mfc 7.1 dll's ?
I have a really small GUI application. Will Install Shield be of any
help ?

You can create a "deployment" (setup) project using Visual Studio, and
if you've installed the redistributable merge modules when you
installed VS, it should automatically include the correct components
in your setup project.

Dave
 
C

Chris Richards

I would agree with Dave on this. Static linking of the MFC dlls probably
won't bloat your app as much as you think, plus it solves a whole HOST of
"Dll Hell' related issues. I pretty much static link MFC in all of my apps
nowadays.

Later,
Chris
 
V

Vijay Chegu

Thank you all.

Will probably use installshield setup based application to verify and copy dll's.

Regards,
Vijay Chegu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top