visual c++ - Which option is the best choice for "Runtime library" and "Use of MFC" -


i want write programme vc++ in vs 2008.
, hope programme can run on win nt, xp, vista , win 7.
, hope programme .exe file.

i have no idea option of "runtime library" , "use of mfc"

combination below:

 ------------------------------------------------------------------------ |                               |multi-threaded  |   multi-threaded dll|       ------------------------------------------------------------------------ |use mfc in static library    |              |         b           | ------------------------------------------------------------------------ |use mfc in shared dll        |        c       |         d           | ------------------------------------------------------------------------ 

i have question, if got it, please me favor. thanks.

1.the 4 combination 1 best choice me? a, b, c or d?
2.after test, choice b occur compile error, why?
3.when create new project or solution in vs, default option d, d best choice commond programme?

:) waiting prefect answer.

my own personal preference use mfc static library there no other dependencies. @ time mfc written common use shared dlls save resources, in age of gigabyte ram , terabyte disks few hundred k won't matter.

using mfc dll has 1 advantage if there's service pack update new dll can installed without replacing application.

if you're writing dll (not exe) uses mfc, need share mfc objects application , use application's event loop. in case forced use mfc dll. think that's why combination "b" doesn't work.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -