全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:2607
推到 Plurk!
推到 Facebook!

在BCB中處理MFC

尚未結案
luckfox0927
一般會員


發表:13
回覆:7
積分:4
註冊:2002-12-29

發送簡訊給我
#1 引用回覆 回覆 發表時間:2007-05-10 12:50:01 IP:220.228.xxx.xxx 訂閱
最近要和其他工程師合作 ,所以會動到VC的MFC,想說嘗試在BCB下結合VCL和MFC玩看看
去BCB的EXAMPLE下逛逛,發現有MFC的範例guidgen嘗試COMPILE也成功
顯然BCB應該是可以編譯MFC,在此想問的是如果要在BCB中編譯
VC做出來的MFC(DLL)或是MFC(EXE)要怎麼做,參考了前面的文章,常是按照其作法試了一下
可惜內容好像有點問題,而且我還是不知道要怎麼做出.bpf,有沒有前輩指導一下


以下試看了範例後 在BCB處理MFC要注意的部份
1.在Options/Source 勾選MFC compatibility
2.
Directories/Conditionals下的Include Path加入$(BCB)\include\mfc;$(BCB)\include\vcl
conditional defines:WIN32;NDEBUG;_WINDOWS;_AFXDLL;_MBCS
salo0610
高階會員


發表:42
回覆:120
積分:107
註冊:2003-02-18

發送簡訊給我
#2 引用回覆 回覆 發表時間:2007-05-10 12:59:29 IP:220.132.xxx.xxx 未訂閱
剛好有大大問這問題,我也順便問一下。

#error WINDOWS.H already included. MFC apps must not #include
是不是就不能 include
之前沒研究過,那 windows.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 supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.

// afxv_w32.h - target version/configuration control for Win32
#ifdef _WINDOWS_
#error WINDOWS.H already included. MFC apps must not #include
#endif

系統時間:2024-04-19 20:49:33
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!