Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6926841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:58:13+00:00 2026-05-27T10:58:13+00:00

I am creating a VC++2008 Windows Form Application which needs some classes from our

  • 0

I am creating a VC++2008 Windows Form Application which needs some classes from our old VC6 project.

Then I have to add afxwin.h and afxmt.h into the stdafx.h to get compile fine. But when I run it, it crash with this information:

enter image description here

In order to find the cause, I removed all files from old project and just leave files created by IDE (professional version). It is still the same. Then I commented out these #include of afxwin.h and afxmt.h in the stdafx.h file, it worked fine (still no old files). If put back those #include it will crash again.

My project configruation is like this:
enter image description here

If I change Common Language Runtime Support to No Common Language Runtime Support. The code generated by IDE cannot be compiled. Other options are not good as well.

There must be a way to avoid the crash. Anybody can help me?

EDIT:

in the error dialog window, there is a line: File: f:\dd\vctools\crt_dbd\self_x86\crt\src\dbgheap.c But I don’t have f drive on my machine. why??

EDIT 2:

it worked if I run Release. why??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:58:14+00:00Added an answer on May 27, 2026 at 10:58 am

    MFC is not getting initialized properly in this scenario. Right-click your Winforms project, Properties, Linker, Input. Set the “Force Symbol References” setting to __DllMainCRTStartup@12.

    Connect feedback article is here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a Windows Mobile Application in C# and Visual Studio 2008. The
We are working to certify our application for deployment on Windows Server 2008 and
I've been creating a an application with C# using W2k8+IIS7/SQLExpress 2008/Web Service/Windows Client. I'll
I am working on a Windows Form-Based application in Visual Studio 2008 using C#
I currently use visual studio 2008 for creating projects that can run on windows.
In Visual Studio 2008 (and others) when creating a .NET or silverlight application if
I'm creating a windows app in c# 2008 that will have around 8-10 dialog
I have an application running in IIS which connects to a SQL Server 2008
I am creating a web application for my company that needs to deal with
I'm developing an application for Windows Mobile Devices using Visual Studio .NET 2008 whose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.