|
Never mind, I should have been setting the nGlyphs
element of the GCP_RESULTS record to the number of characters I was sending, but
had it set to 0.
Just to confirm though, in case anyone else wants
to use this routine, that the correct import of this set of functions is as
follows:
interface
....
{$EXTERNALSYM GetCharacterPlacementA}
function GetCharacterPlacementA(DC: HDC; p2: PAnsiChar; p3, p4: Integer; var p5: TGCPResults; p6: DWORD): DWORD; stdcall; {$EXTERNALSYM GetCharacterPlacementW} function GetCharacterPlacementW(DC: HDC; p2: PWideChar; p3, p4: Integer; var p5: TGCPResults; p6: DWORD): DWORD; stdcall; {$EXTERNALSYM GetCharacterPlacement} function GetCharacterPlacement(DC: HDC; p2: PChar; p3, p4: Integer; var p5: TGCPResults; p6: DWORD): DWORD; stdcall; implementation
const
gdi32 = 'gdi32.dll'; .... function GetCharacterPlacementA; external gdi32
name 'GetCharacterPlacementA';
function GetCharacterPlacementW; external gdi32 name 'GetCharacterPlacementW'; function GetCharacterPlacement; external gdi32 name 'GetCharacterPlacementA'; Phil.
|
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
