LEADTOOLS Support
General
General Questions
C++Builder ANSI vs Wide String or (char * vs wchar_t*)
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, November 2, 2009 6:05:47 AM(UTC)
Groups: Registered
Posts: 16
Dear support,
I have some linker problems with SetFileName and GetInfo functions of LFile class.
I got the errors :
[Linker Error] Unresolved external 'LFile::SetFileName(char *)' referenced from ...
[Linker Error] Unresolved external 'LFile::GetInfo(_FILEINFOA *, unsigned int, unsigned int, _LOADFILEOPTION *)' referenced from ...
I check the linked library. It seams to be ok.
Using unicode (UNICODE in conditionals), borland link without problem.
I can't find information about this in the forum or the wide API.
Any suggestion?
Thank you,
Dominique
#2
Posted
:
Tuesday, November 3, 2009 6:30:52 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Which LEADTOOLS version (15, 16, etc.) are you using?
Also, if you try to build our main Class Lib Builder demo shipped with the toolkit, do you get the same problem?
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Tuesday, November 3, 2009 2:12:51 PM(UTC)
Groups: Registered
Posts: 16
Dear Maen Badwan,
I use v16.5 licenced.
I have
no problem linking samples (...\LEAD Technologies\LEADTOOLS 16.5\Examples\CBuilder\LoadSaveDemo\CBLoadSaveDemo.bpr for exemple) because its use Unicode version. Removing the UNICODE (and _UNICODE) definition reach to nothing because all the demo is designed with WideString strings.
The problem is like as if the library has no link to ansi version for the LFile::SetFileName and LFile::GetInfo.
Regards,
Dominique
#4
Posted
:
Thursday, November 5, 2009 6:13:52 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
I want to investigate this issue further. Please send an email to
support@leadtools.com and include the following in the message:
1. Your LEADTOOLS v16.5 serial number (do NOT post it here)
2. The build number (version info) of LEADTOOLS v16.5 DLLs that you use.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#5
Posted
:
Thursday, November 5, 2009 11:45:36 PM(UTC)
Groups: Registered
Posts: 16
How/Where can I find the build number you want? Is that all the version numbers given with the VersionInfo tool ?
Rgds,
Dominique
#6
Posted
:
Saturday, November 7, 2009 11:17:51 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
You can get the file version of the DLL (Ltkrnu.dll) by right clicking on the DLL and then checking the version tab.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#7
Posted
:
Monday, November 23, 2009 9:41:47 PM(UTC)
Groups: Registered
Posts: 16
Dear Leadtool user. Here is the final response from the support :
"Our engineers checked this issue and found that it's Not a Bug, because we do not have a special non-unicode build for Borland."
==> use WideString instead AnsiString
Thanks to Mean !
Dominique
LEADTOOLS Support
General
General Questions
C++Builder ANSI vs Wide String or (char * vs wchar_t*)
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.