`
king_c
  • 浏览: 214038 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

error : Please use the /MD switch for _AFXDLL builds 的解决方法

 
阅读更多

在用vs打开项目后,编译的时候出现“Please use the /MD switch for _AFXDLL builds”

这个错误的解决方法如下:


修改如下设置:工程(Project)->属性(Properties)->配置属性(Configuration Properties)->c/c++->代码生成(Code Generation)->运行时库(Use run-time library)->多线程调试DLL(/MDd)(Multithreaded DLL/Debug Multithreaded DLL)

分享到:
评论

相关推荐

    vc++课程设计 聊天程序 任务书及源程序打包

    #ifdef _AFXDLL Enable3dControls(); // Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif CChatDlg dlg; m_pMainWnd = &dlg...

    Compiler.rar

    cl stdafx.cpp /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Fp"Release/Test.pch" /Yc"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c cl qq.cpp /nologo /MD /W3 /GX ...

    毕业设计五子棋源代码

    // FiveChess.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "FiveChess.h" #include "MainFrm.h" #include "FiveChessDoc.h" #include "FiveChessView.h" #include ...

    防火墙设计

    // fire.cpp : Defines the class behaviors for the application. // #include "StarWarsCtrl.h" // Added by ClassView #include "stdafx.h" #include "fire.h" #include "MainFrm.h" #include "fireDoc.h" #...

    图像处理程序大全 C++

    if (ERROR_ALREADY_EXISTS == GetLastError()) // 判断程序是否已运行 { AfxMessageBox("该应用程序已运行! ", MB_ICONINFORMATION | MB_OK); ExitProcess(0); // 退出应用程序 } } ReleaseMutex...

    C++中用MFC制作的通讯录

    // Lab_link.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "Lab_link.h" #include "Lab_linkDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static ...

    大地测量中的大地正解

    // 大地测量学.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "大地测量学.h" #include "MainFrm.h" #include "大地测量学Doc.h" #include "大地测量学View.h" #...

    visual c++ 课程设计 GPA计算器 源程序

    Creating command line "rc.exe /l 0x804 /fo"Release/GPACalculator.res" /d "NDEBUG" /d "_AFXDLL" "F:\已完成\章节(程序)\ch3\GPACalculator\GPACalculator.rc"" Creating temporary file "C:\DOCUME~1\Simply\...

    c++课程设计钟表程序

    // timer.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "timer.h" #include "timerDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_...

    生产者消费者问题VC实现

    // pc问题.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "pc问题.h" #include "pc问题Dlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char ...

    vc++小程序原文件

    相关代码:// 颜色矩形.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "颜色矩形.h" #include "颜色矩形Dlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_...

    Ring3下获取原始的SSDT

    // ssdt.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "ssdt.h" #include "ssdtDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_...

    一个自定义IP地址控件

    #ifdef _AFXDLL Enable3dControls(); // Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif CIPTestDlg dlg; m_pMainWnd = &dlg...

    小型计算器 c++ MFC

    // MyCalrr.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "MyCalrr.h" #include "MyCalrrDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char...

    简单聊天程序

    // Client.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "Client.h" #include "ClientDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char ...

    数据库图书管理系统课程设计

    大学数据库课// LibDBS.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "LibDBS.h" #include "LibDBSDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE ...

    TCP实现聊天Socket网络编程

    // Client.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "Client.h" #include "ClientDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char ...

    计算器mfc课程设计

    #ifdef _AFXDLL Enable3dControls(); // Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif CCaculateDlg dlg; m_pMainWnd = ...

    stdafx.h代码

    stdafx.h的代码// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1998 Microsoft Corporation // All rights reserved. // // This source code is only intended as a ...

    VC6.0编译器设置说明

     /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Fp"Debug/WritingDlgTest.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c  各个参数代表的意义,...

Global site tag (gtag.js) - Google Analytics