Jump to content
  • Advertisement

Archived

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

Hoser

Any insight as to why this is crashing?

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

Has anyone ever seen this with the MFC application wizard? I'm doing the following... Creating a single document MFC application with the document/view architecture and I'm my view class is inherited from the CHtmlView class. The wizard creates all the classes and files just fine. However, when I try to compile and run the code (without having changed one line of code), I get an access violation when the following line is called in my CMainFrame class if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; Any ideas as to why this is happening? This is the first time where I've had an application shell developed by the wizard not work right off the bat. edit: using MSVC++ 6.0 [edited by - Hoser on October 24, 2003 1:23:19 PM]

Share this post


Link to post
Share on other sites
Advertisement
Is that function private?

__________________________________________
Don't ask me, I'm the lazy programmer.

[edited by - Agrelahar on October 24, 2003 7:29:00 PM]

Share this post


Link to post
Share on other sites
I should clarify...I run the code and it performs an "illegal operation". What I meant by access violation is that it seems to be accessing some memory it shouldn''t...which is puzzling since I''m just executing the code straight from the wizard.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
what VC++ service packs have you applied? any? early releases of the MFC code with VC++ were quite buggy. i''d say you need at least 3, but should probably apply the latest (5?)

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!