× Discussions for CodeTyphon Object Pascal Programming Language

Question Problem with Lazarus Library in CodeTyphoon

  • TECHNOLOG
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 1 hour ago #15073 by TECHNOLOG
Hi to all,

I have a commercial library from Elevatesoft.

Converting the x64 Library to Codetyphoon give me a compiler error:

edbcommon.pas(1443,89) Error: Call by var for arg no. 6 has to match exactly: Got "QWord" expected "LongWord"


The code line is
FThreadHandle:=BeginThread(nil,0,@ThreadProc,Pointer(Self),CREATE_SUSPENDED,FThreadID);

I have tried to convert the QWord to Longword with the following code
FThreadHandle:=BeginThread(nil,0,@ThreadProc,Pointer(Self),CREATE_SUSPENDED,longWord(FThreadID));

result in the following compiler error

edbcommon.pas(1443,99) Error: Can't take the address of constant expressions



Any idea how to get the x64 library to work? We develop only x64 Applications, so using x86 Application is not possible and not tested.

Thank you in advance.

Please Log in or Create an account to join the conversation.

More
2 weeks 1 hour ago - 2 weeks 1 hour ago #15074 by Matis A.
Replied by Matis A. on topic Problem with Lazarus Library in CodeTyphoon
Try
PtrInt( or
PtrUInt(

PilotLogic Core Programmer
Last edit: 2 weeks 1 hour ago by Matis A..

Please Log in or Create an account to join the conversation.

  • TECHNOLOG
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 1 hour ago #15075 by TECHNOLOG
Replied by TECHNOLOG on topic Problem with Lazarus Library in CodeTyphoon
I got the following errors
FThreadHandle:=BeginThread(nil,0,@ThreadProc,Pointer(Self),CREATE_SUSPENDED,PtrInt(FThreadID));

edbcommon.pas(1443,97) Error: Call by var for arg no. 6 has to match exactly: Got "Int64" expected "LongWord"


FThreadHandle:=BeginThread(nil,0,@ThreadProc,Pointer(Self),CREATE_SUSPENDED,PtruInt(FThreadID))

edbcommon.pas(1443,98) Error: Call by var for arg no. 6 has to match exactly: Got "QWord" expected "LongWord"

Please Log in or Create an account to join the conversation.

More
2 weeks 52 minutes ago #15076 by Matis A.
Replied by Matis A. on topic Problem with Lazarus Library in CodeTyphoon
More Info Sir
FThreadID is TThreadID

what type is FThreadHandle ?

a code Sample ?

PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • TECHNOLOG
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 week 6 days ago - 1 week 6 days ago #15083 by TECHNOLOG
Replied by TECHNOLOG on topic Problem with Lazarus Library in CodeTyphoon
Because it is a commercial library, I prefer to PM more information to you and not via Forum.
As Moderator, please send me a message to my email and I will send you more information by email.
Last edit: 1 week 6 days ago by TECHNOLOG.

Please Log in or Create an account to join the conversation.

More
1 week 6 days ago - 1 week 6 days ago #15084 by Matis A.
Replied by Matis A. on topic Problem with Lazarus Library in CodeTyphoon
Sorry Sir
it's commercial library, so we can't help you,
If you are NOT the owner of the Library.

If you are the owner of the Library,
you can first send an email
to This email address is being protected from spambots. You need JavaScript enabled to view it. without any source
to discuss this.

PilotLogic Core Programmer
Last edit: 1 week 6 days ago by Matis A..

Please Log in or Create an account to join the conversation.