run without DLLs (Visual C++)

I want to my program runs independent (without DLLs).
How can I set options to compile it?
thanks
ndhaiAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jhanceConnect With a Mentor Commented:
VinExpert,

Do you just go around and copy comments given by others?
0
 
jhanceCommented:
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.
0
 
Vinayak KumbarSr Program ManagerCommented:
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
0
 
Vinayak KumbarSr Program ManagerCommented:
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
0
All Courses

From novice to tech pro — start learning today.