This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, December 22, 2005 1:24:13 PM(UTC)
Groups: Registered
Posts: 12
how do you access the angle drawn by the protractor annotation object.
i need to use this angle, i tried AnnGetText but that does not work for protractor
Using Lead tools 14 with C++ Builder 6
Thanks
#2
Posted
:
Sunday, December 25, 2005 10:27:51 PM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Imad,
In LEADTOOLS 14.5, a new method named AnnGetAngle was added to the VCL
annotations control. If you own v14.0, you can either use the DLL API
function L_AnnGetAngle, or contact
sales@leadtools.com to enquire about
upgrading to v14.5.
Amin Dodin
LEADTOOLS Technical Support
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Monday, December 26, 2005 12:56:59 PM(UTC)
Groups: Registered
Posts: 12
Thanks for your reply
I am Using Lead tools 14.0 for C++ Builder 6. I could not find L_AnnGetAngle in LeadTools help.
when i used it as L_AnnGetAngle( L_HANDLE hAnnObject, double FAngle );
i got unresolved external , means i dont have this function available.
could you please update me on this. An tiny code snippet would be a great help
Thanks Again.
#4
Posted
:
Monday, December 26, 2005 8:33:39 PM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
The prototypes for this function and other API annotations functions is
in [LEADTOOLS folder]\include\Ltann.h, so you will need to #include
this file.
Alternatively, include L_bitmap.h because it includes all needed LEADTOOLS declarations.
To link the function using a Borland linker, add ltann_bc.lib to the project.
Amin Dodin
LEADTOOLS Technical Support
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#5
Posted
:
Tuesday, December 27, 2005 6:10:04 AM(UTC)
Groups: Registered
Posts: 12
In my project i am using LEADAnn.hpp and LeadMain.hpp for annotations ( Version: LeadTools 14 c++ Builder 6 ).
When i include Ltann.h i am getting error such as "Ambiguity between L_UNIT and LeadTyp::L_UINT." and it opens the file lttyp.h
and same result with L_bitmap.h.
I was wondering is there is any way i could use a scope resolution to get rid of this ambiguity.
Thank you
#6
Posted
:
Tuesday, December 27, 2005 8:51:03 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Imad,
Since you are using the VCL, there's no need to #include the .H files.
The VCL files themselves for C++ Builder contain the declarations for
the API functions. In particular, L_AnnGetAngle is declared in
LEADUnt.hpp, and since LEADUnt.hpp is included in LEADAnn.hpp, simply
using the LEAD VCL Ann object will give you that declaration.
This means you only need to include Ltann.h or L_bitmap.h if you are
building an API application that doesn't use the LEADTOOLS VCL. Sorry
if I gave you misleading information last time.
However, you will need to add the "*_bc.lib" files to any project that uses annotations. The minimum list of files needed is:
ltann_bc.lib
ltdis_bc.lib
ltDLGKRN_bc.lib
ltefx_bc.lib
ltfil_bc.lib
ltimg_bc.lib
ltkrn_bc.lib
Once you have those, you simply call the code as follows:
double d=0;
L_AnnGetAngle(hProtObject, &d);
If you still face a problem, create a very small project that shows how
you tried to call the function and either post it here or send it to
support@LEADTOOLS.com
If you post or email files, please put them in a ZIP file first.
Amin Dodin
LEADTOOLS Technical Support
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#7
Posted
:
Tuesday, December 27, 2005 10:06:17 AM(UTC)
Groups: Registered
Posts: 12
Great! its working now
Thanks a lot.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.