• Advertisement

Archived

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

MFC projects

This topic is 6711 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

The best way is to first port a sample to C++, and then port that into MFC. The devdlg.c and winutil.c files should stay as they are, and they should be set to NOT use precompiled headers. You do this through the Project->Settings dialog and select the file in the tree view, then change the options for it.

You MUST set your project and ALL LIBRARIES OF YOUR OWN being linked to use byte-aligned structures.

These are the libraries you should tell it to link to: "winmm.lib ddraw.lib pr.lib prgui.lib dxguid.lib dinput.lib"

You can check out this source code that should help you. It isn't a complete project, so if it doesn't help then just darrennix@msn.com me and I'll try to create a sample project for you.

Good luck!

DarrenNix

[BTW: I am working on an MFC project that I will release in full source promptly by Sept. 27th, whether the project is complete or not. I hope it will make PR more accessible to newer users, and give the advanced ones a foundation upon which they can innovate. It's an indoor level editor.]

[This message has been edited by DarrenNix (edited September 08, 1999).]

Share this post


Link to post
Share on other sites
Advertisement
Are there any guidlines to follow for building a complete new MFC project from scratch for powerrender? I tried this and it died on the link step and anything I did didnt seem to help.

Share this post


Link to post
Share on other sites

  • Advertisement