Tuesday, October 30, 2012
Friday, October 26, 2012
Ambiguity between 'Graphics' and 'Gdiplus::Graphics' : C++ Builder
1. Add "STRICT" to conventional defines.
2. Arrange header files in the following order:
#include <algorithm>
using std::min;
using std::max;
#include <gdiplus.h>
2. Arrange header files in the following order:
#include <algorithm>
using std::min;
using std::max;
#include <gdiplus.h>
Wednesday, October 24, 2012
LARGEADDRESSAWARE 讓 C++ Builder 製作的程式可以使用 4GB 的記憶體
在 Project -> Options -> C++ Linker -> Ouput -> Image flags加入LARGEADDRESSAWARE。
參考
http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devcommon/ilink32_output_xml.html
參考
http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devcommon/ilink32_output_xml.html
Tuesday, October 23, 2012
Thursday, October 18, 2012
在C++ Builder 使用 QHull
QHull: 一個很有效率的工具,用來建立一群點的凸多邊形、Delaunay TIN、Voronoi diagram。
有完整的原始 c 與 c++ 程式碼可下載,並提供 Visual C++ 的專案檔。
而在 C++ Builder build QHull 時,需修改下列設定:
1. Conventional 增加 __STDC__。
2. 在 user.h 增加 #define qh_QHpointer 1。
3. PointCoordinates.h 中有多個成員函式的定義需要修改。主要是變數形態轉換的問題,另有幾個重複定義的函數,remark 即可。
有完整的原始 c 與 c++ 程式碼可下載,並提供 Visual C++ 的專案檔。
而在 C++ Builder build QHull 時,需修改下列設定:
1. Conventional 增加 __STDC__。
2. 在 user.h 增加 #define qh_QHpointer 1。
3. PointCoordinates.h 中有多個成員函式的定義需要修改。主要是變數形態轉換的問題,另有幾個重複定義的函數,remark 即可。
Subscribe to:
Posts (Atom)
phpMyAdmin 無法存取 MariaDB 10 的解決方法
[Reference] https://www.qnap.com/zh-tw/how-to/faq/article/%E7%82%BA%E4%BB%80%E9%BA%BC%E7%84%A1%E6%B3%95%E5%9C%A8-phpmyadmin-%E5%AD%98%E5%8...
-
[ M LiDAR Viewer ] Windows 7 環境下, 在OpenGL視窗使用GDI即時繪圖,例如操作滑鼠繪出框選矩形時, 原來在視窗上的圖案會被清除。此時必須關閉[桌面轉譯緩衝處理]。 1.在程式的圖案上按滑鼠右鍵, 開啟程式[內容]對話盒. 2.按[相容性]頁面...
-
看這裏 http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/1f22d98f-e150-4a54-9967-1641fa86dbc5
-
[Reference] http://www.programmer-club.com.tw/ShowSameTitleN/cb/10992.html 在主程式 WinMain() 加入下面程式碼 WINAPI WinMain(HINSTANCE, HINSTANCE, LPST...