Linker Error: GetCharWidthA()

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
softk
Posts: 2
Joined: Wed Oct 25, 2006 8:43 am

Linker Error: GetCharWidthA()

Post by softk »

Good Day!
We try to use XLSReadWriteII 3.0 for C++Builder 5. Everything OK, but we have this problem during linking line:

return XLS->Sheet[0]->Columns->Items[iCol]->CharWidth;

C++Builder say:
[Linker Error] Unresolved external '__fastcall Columns2::TXLSColumn::GetCharWidthA()' referenced from D:\SYSWIN\XLSDIRECT.OBJ

There is no error if we write "Width" instead "CharWidth".
We need CharWidth.
Thanks.
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

I think CharWidth is mixed up with something else...
The function GetCharWidthA is not used anywhere in the component, and the file XLSDIRECT.OBJ is not a part of the component. C++Builder 5 seems to to have a problem when linking your files. One possible solution you can try is to rename the property CharWitdh to something else.


Lars Arvidsson
softk
Posts: 2
Joined: Wed Oct 25, 2006 8:43 am

c->Width/256

Post by softk »

Hello Lars!
Maybe this will be usefull for other programers.
We used Width/256. It's the same as CharWidth.

Thank You for fast answer!
Good Luck!

Alex
Post Reply