線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:867
推到 Plurk!
推到 Facebook!

如何在BCB5裡使用shlobj.h

 
axsoft
版主


發表:681
回覆:1056
積分:969
註冊:2002-03-13

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-02-25 20:57:14 IP:61.218.xxx.xxx 未訂閱

如何在BCB5裡使用shlobj.h

shlobj.h這個頭文件中包含了很多Shell編程的定義,非常有用。 但是在BCB5中卻有問題,一旦包含這個頭文件,則會導致編譯出錯。解決方法很簡單,如下。 在Project menu > Options > Directories/Conditionals裡的Conditionals中加入NO_WIN32_LEAN_AND_MEAN 即可。 WIN32_LEAN_AND_MEAN is a MS header file define used to bring in bare minimum Windows header files when #including windows.h. Borland VCL headers use WIN32_LEAN_AND_MEAN (minimum MS Windows header files) because many of the necessary header defines (e.g. structs ) are accessible via VCL. VCL is Pascal originally, remember, and the Pascal had to 'import' the MS header defines it needed. In some cases, e.g. apps that use certain Windows API or data structures directly instead of going through the VCL 'ported' ones, some structs or typedef's will go missing. So Borland headers check for your define of NO_WIN32_LEAN_AND_MEAN to allow turning OFF the define of WIN32_LEAN_AND_MEAN. 聯盟----Visita網站http://www.vista.org.tw ---[ 發問前請先找找舊文章 ]---
系統時間:2024-04-26 14:34:20
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!