Link to home
Start Free TrialLog in
Avatar of ndhai
ndhai

asked on

run without DLLs (Visual C++)

I want to my program runs independent (without DLLs).
How can I set options to compile it?
thanks
Avatar of jhance
jhance

What DLLs?  Some DLLs are expected to be present on ANY valid Windows platform and will always be required.

Please specify.  If you mean MFC DLLs, then use the Project Settings>General  and the Use MFC in a Static Library option to statically like the MFC runtime to your application.  But even if you do this, SOME DLLs will still be loaded at run time.
Hi,

Go to Project->Settings and specify as "Static linking" instead of Dynamic Linking for the MFC dlls. That should solve ur prob.

Try it out.
VinExpert
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi jhance,

I am sorry. I just wrote it..... I just forgot to read the prev comments. Anyway, thats not the new one to go around and find answer and copy it here.

VinExpert