Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Got "PChar", expected "PWideChar" 7 years 11 months ago #9540

  • yona
  • yona's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Im getting a few of this errors when compiling wince-arm
uPSR_dll.pas(122,51) Error: Incompatible type for arg no. 1: Got "PChar", expected "PWideChar"

if loadwithalteredsearchpath then
dllhandle := LoadLibraryEx(PChar(Filename), 0, LOAD_WITH_ALTERED_SEARCH_PATH)
else
dllhandle := LoadLibrary(PChar(Filename));

Using ver 5.7
FPC 3.1.1

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

Last edit: by yona.

Got "PChar", expected "PWideChar" 7 years 11 months ago #9561

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Please Sir
try and LAB CodeTyphon 5.8
I think, we solve this problem
PilotLogic Architect and Core Programmer

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

Got "PChar", expected "PWideChar" 7 years 11 months ago #9562

  • yona
  • yona's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
I cant see how to update to 5.8 Im using CodeTyphon center ver 5.7 for win64 update manager latest ver is 5.735

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

Got "PChar", expected "PWideChar" 7 years 11 months ago #9563

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Sir please, read this
and Lab CT 5.8 forum session
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

Got "PChar", expected "PWideChar" 7 years 11 months ago #9564

  • yona
  • yona's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Same error in CodeTyphon 5.8

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

  • Page:
  • 1