Re: [fpc-pascal] Problem with string conversion

2006-10-19 Thread Marco van de Voort
> I am having a problem with string conversion from utf-8 to utf-16: > > procedure TForm1.Button6Click(Sender: TObject); > var > WideText: PWideChar; > AText: string; > Size: Integer; > begin > AText := 'Meu longo texto iso-8859-1'; > Size := Utf8ToUnicode(nil, PChar(AText), 0); > Wide

[fpc-pascal] Problem with string conversion

2006-10-19 Thread Felipe Monteiro de Carvalho
Hello, I am having a problem with string conversion from utf-8 to utf-16: procedure TForm1.Button6Click(Sender: TObject); var WideText: PWideChar; AText: string; Size: Integer; begin AText := 'Meu longo texto iso-8859-1'; Size := Utf8ToUnicode(nil, PChar(AText), 0); WideText := GetMem(Size

Re: [fpc-pascal] mixing C and Pascal and function pointers

2006-10-19 Thread Leonardo M. Ram
The C routines are inside a shared library?. Can you post the "C" code to call these routines? --- Armando Navarro Vázquez <[EMAIL PROTECTED]> wrote: > > Dear members: > I am not familiar with Pascal, but I would like to call some C routines > inside > the main Pascal program, is there any w

RE: [fpc-pascal] mixing C and Pascal and function pointers

2006-10-19 Thread Wolfe, Robert
You may want to convert the code for the function using the h2pas or c2pas conversion utilities that are available out there to do this. Robert Wolfe ([EMAIL PROTECTED] / [EMAIL PROTECTED]) Computer Programmer/Analyst & Web Programmer SRDAR, Roswell Park Cancer Institute, Buffalo, New York 716-8

[fpc-pascal] mixing C and Pascal and function pointers

2006-10-19 Thread Armando Navarro Vázquez
Dear members: I am not familiar with Pascal, but I would like to call some C routines inside the main Pascal program, is there any way, to pass function pointers from Pascal to the C subroutines? Thanks in Advance Armando -- Dr. Armando Navarro-Vázquez RIAIDT. Univdade de Resonancia Magnetica

Re[2]: [fpc-pascal] inlining functions

2006-10-19 Thread ϸ�� ����������� � mail.ru
>> > Hi, >> > when using "inline" on a procedure or function, does it completely avoid >> > the call by copying anything inside the "begin ... end" block to the >> > right place? >> Yes, that's the idea. "INLINE" is a suggestion, not obligation: sometimes they are compiled with "CALL". It looks es

Re: [fpc-pascal] inlining functions

2006-10-19 Thread Marc Santhoff
Am Donnerstag, den 19.10.2006, 09:05 +0200 schrieb Michael Van Canneyt: > > On Thu, 19 Oct 2006, Marc Santhoff wrote: > > > Hi, > > > > when using "inline" on a procedure or function, does it completely avoid > > the call by copying anything inside the "begin ... end" block to the > > right plac

Re: [fpc-pascal] inlining functions

2006-10-19 Thread Michael Van Canneyt
On Thu, 19 Oct 2006, Marc Santhoff wrote: > Hi, > > when using "inline" on a procedure or function, does it completely avoid > the call by copying anything inside the "begin ... end" block to the > right place? Yes, that's the idea. Michael. ___ fpc