Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Object Pascal Programming Language
  • Page:
  • 1

TOPIC:

Problem with Lazarus Library in CodeTyphoon 4 years 4 weeks ago #15073

  • TECHNOLOG
  • TECHNOLOG's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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.

Problem with Lazarus Library in CodeTyphoon 4 years 4 weeks ago #15074

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1087
  • Thank you received: 156
Try
PtrInt( or
PtrUInt(
PilotLogic Core Programmer

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

Last edit: by Matis A..

Problem with Lazarus Library in CodeTyphoon 4 years 4 weeks ago #15075

  • TECHNOLOG
  • TECHNOLOG's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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.

Problem with Lazarus Library in CodeTyphoon 4 years 4 weeks ago #15076

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1087
  • Thank you received: 156
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.

Problem with Lazarus Library in CodeTyphoon 4 years 4 weeks ago #15083

  • TECHNOLOG
  • TECHNOLOG's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
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.

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

Last edit: by TECHNOLOG.

Problem with Lazarus Library in CodeTyphoon 4 years 4 weeks ago #15084

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1087
  • Thank you received: 156
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

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

Last edit: by Matis A..
  • Page:
  • 1