Recent

Author Topic: Cross Wince Error  (Read 2265 times)

Derit

  • Jr. Member
  • **
  • Posts: 55
Cross Wince Error
« on: November 03, 2013, 09:47:42 am »
i'm trying lazarus thunk latest version build for wince
i found error from grapich.pp
code from grapich.pp
Code: [Select]
Stream := TResourceStream.Create(Instance, PChar(ResName), PChar(RT_RCDATA));

message:
C:\lazarus\lcl\graphics.pp(2805,80) Error: Incompatible type for arg no. 3: Got "PChar", expected "PWideChar"

i'm need question for error found....
« Last Edit: November 03, 2013, 09:50:00 am by derit »
Lazarus Trunk/FPC Trunk/2.6.2/2.6.4

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11453
  • FPC developer.
Re: Cross Wince Error
« Reply #1 on: November 03, 2013, 02:40:00 pm »
On Windows CE, most of the windows API is only available in wide format, contrary to win32/64 where both A and W functions are available for most functions that take a string.

This means that windows header prototypes can deviate slightly on Win CE, and this reverberates through into packages that are close to the winapi (like register and resources).

So probably the error is correct, and the typecast should be "PWidechar" on wince (assuming the rest of the code is correct.)_

Derit

  • Jr. Member
  • **
  • Posts: 55
Re: Cross Wince Error
« Reply #2 on: November 04, 2013, 04:32:05 am »
on win32 or 64 or linux fine no error , but error WinCe Found
i'm used stable version error not found fine For WinCe
Lazarus Trunk/FPC Trunk/2.6.2/2.6.4

 

TinyPortal © 2005-2018