views:

159

answers:

2

Is it possible to create an MFC static library (.lib) and link it to a non-MFC C++ application? If so, does anyone know how to create an MFC static library? Visual Studio doesn't seem to have any templates like that.

A: 
chrisd
A: 

MFC also comes as static library. Try creating an MFC project and experiment with project settings. You can also link it to non-MFC project. See generated stdafx file - it includes all needed headers plus does linking via preprocessor directive

Captain Comic