Archived

This topic is now archived and is closed to further replies.

InDirect3D

Could somebody please tell me how to statically link to MFC in .NET

Recommended Posts

Hi. I created a simple MFC7/.NET game and would like to know how to link the game statically to MFC, so that it doesn''t require .NET to be installed on the running machine. I have never done this before and I could not find the solution in the .NET documentation, so please give me a step by step instruction. Thanks

Share this post


Link to post
Share on other sites
well if it''s an actual ".net" program, you can''t simply statically link it. However if it''s an mfc prgram written on the VS.net ide:
right click on the project file and select properties.
and lo and behold there on the first screen staring you in the face is a setting titled "Use of mfc"
change that puppy to "use MFC in a static library"

however as I mentioned before... if it''s a .net game this won''t work and if it''s an mfc game you won''t need the .net runtime anyway.

"That''s not a bug, it''s a feature!"
--me

Share this post


Link to post
Share on other sites