Лена*
Зарегистрирован: 14.08.2006 Сообщения: 16
|
Добавлено: Чт Июн 28, 2007 11:46 am Заголовок сообщения: С++ Builder 2007 |
|
|
Вышла новая IDE С++ Builder 2007 http://dn.codegear.com/article/36606 . Вот рекомендации как установить MapX5.0 в эту IDE:
Import and and compile Mapx50.dll
tlibimp -P- -C+ "C:\Program Files\MapInfo\MapX 5.0\MAPX50.DLL"
bcc32 -c MapXLib_OCX.cpp
//exp:
No errors
//act:
Error E2316 MapXLib_OCX.h 698: 'set_Width' is not a member of 'TField'
Error E2316 MapXLib_OCX.h 699: 'set_Decimals' is not a member of 'TField'
Edit the generated code to look like the code generated in BCB6:
CHANGE:
__property short Width={ read=get_Width, write=set_Width, stored=false };
__property short Decimals={ read=get_Decimals, write=set_Decimals, stored=false };
TO:
__property short Width={ read=get_Width, stored=false };
__property short Decimals={ read=get_Decimals, stored=false };
There is another change necessary to enable installing the components.
It is necessary to alias "Label" to some other name to avoid a name
clash with VCL TLabel. To do that aliasing, open ..\bin\tlibimp.sym
and add an alias under C++ typenames.
[C++:TypeNames]
Label=MapXLabel
After that change to tlibimp.sym subsequent imports will alias
TLabel and the components can be installed without conflict with
VCL TLabel. |
|