简体   繁体   中英

Is a C++ MFC program fully native?

I'm looking to create a windows program that doesn't require any environmental dependencies (like Java JRE or .NET). I need the program to just install out of the box and work on any version of windows between 95 and 7.

Is creating it with C++ and MFC the way to go?

Thanks,

Yes, it's "native", but that doesn't mean you won't have dependencies (which I think is what you're asking about).

If you dynamicly link with MFC you'll have a dependency on MFC that you will have to redistribute

You could link statically with the MFC library, in which case all the object code needed is included in your executable. But linking statically is not recommended (one reason is for security - security updates to MFC can't get pushed out to your application unless you do it).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM