Saturday, May 2, 2015
[C++ Builder XE6] Error! Import Bentley Microstation (V8) Type Library (E2347)
[bcc32 Error] MicroStationDGN_OCX.h(2159): E2347 Parameter mismatch in write access specifier of property Vertex
-------------------------------------------
[MicroStationDGN_OCX.h]
void __fastcall set_Vertex(int Index/*[in]*/, Microstationdgn_tlb::Point3d* pVal/*[in,out]*/);
__property Microstationdgn_tlb::Point3d Vertex[int Index]={ read=get_Vertex, write=set_Vertex };
[MicroStationDGN_OCX.cpp]
void __fastcall TEllipseElement::set_Vertex(int Index/*[in]*/,
Microstationdgn_tlb::Point3d* pVal/*[in,out]*/)
{
GetDefaultInterface()->set_Vertex(Index/*[in]*/, pVal/*[in,out]*/);
}
--------------------------------------- Solution -----------------------------------------------------------------
[MicroStationDGN_OCX.h]
void __fastcall set_Vertex(int Index/*[in]*/, Microstationdgn_tlb::Point3d& pVal/*[in,out]*/);
[MicroStationDGN_OCX.cpp]
void __fastcall TEllipseElement::set_Vertex(int Index/*[in]*/,
Microstationdgn_tlb::Point3d& pVal/*[in,out]*/)
{
GetDefaultInterface()->set_Vertex(Index/*[in]*/, &pVal/*[in,out]*/);
}
---------------------- Explain ----
Parameter type of set_ function should be the same as the type of the Property.[C++ Builder XE6] Import Type Library as ActiveX Component (Ex: AutoCAD)
1. Create a new project.
2. [Component] [Import Component...]
3. [Import a Type Library]
4. Select the Type Library to be imported. ( Ex: AutoCAD )
5.1 Check [Generate Component Wrappers]
5.2 Assign Palette Page.
6. [Install to New Package]
7. Assign [Package Name] ........[Finish]
8.
9. Right click on the package project.....[Install]
10.
11. Components installed.
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...