Jump to content
  • Advertisement

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

This topic is 5582 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!