[fpc-pascal] Pascal and C++ classes

2022-06-25 Thread yu ping via fpc-pascal
Is IT possible for pascal to use C++ class objects in a dynamic library? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Is it posible to implement more than one interface in a class defination?

2010-11-14 Thread yu ping
For example if there are two Interface : IinterfaceA,IinterfaceB can I implement these two interface in one class? Thanks pingyu ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.o

Re: [fpc-pascal] Re: Is it posible to get a minimal installation of Lazarus?

2010-11-07 Thread yu ping
I've download the MseGUI IDE and source,I successfully Compile a project and run it. Thanks :) pingyu ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Is it posible to get a minimal installation of Lazarus?

2010-11-06 Thread yu ping
I want to set up Lazarus as FPC Editor and Debuger. But Lazarus installation is too big,How to install a minimal size of Lazarus? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is there a way to install FPC on QNX system?

2010-02-27 Thread yu ping
I'm not a expert programmer. I'm just a student on this list. I'll check the code and see if I can do that. :) 2010/2/28 Michael Van Canneyt > > On Sat, 27 Feb 2010, yu ping wrote: > > I'm trying to use QNX multi tasking system.http://www.qnx.com >> Is

[fpc-pascal] Is there a way to install FPC on QNX system?

2010-02-27 Thread yu ping
I'm trying to use QNX multi tasking system. http://www.qnx.com Is it possible to use FPC on this system? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to init Array values in a record?

2010-02-04 Thread yu ping
I use : tbrbtns:array[0..5] of TBBUTTON =( (iBitmap:7;idCommand:1;fsState:TBSTATE_ENABLED;fsStyle:TBSTYLE_BUTTON;dwData:0;iString:0), (iBitmap:8;idCommand:10001;fsState:TBSTATE_ENABLED;fsStyle:TBSTYLE_BUTTON;dwData:0;iString:0), (iBitmap:0;idCommand:0;fsState:TBSTATE_ENABLED;fsStyle:TBSTY

[fpc-pascal] How to init Array values in a record?

2010-02-04 Thread yu ping
_TBBUTTON= Record iBitmap : cint; idCommand: cint; fsState : BYTE; fsStyle : BYTE; bReserved

Re: [fpc-pascal] Is there a way to declare a static varible in a function body?

2009-11-18 Thread yu ping
Thanks, you are realy clever:)) 2009/11/18 Frank Peelo > On 18/11/2009 08:10, yu ping wrote: > >> Is there a way to declare a static varible in a function body? the varible >> should remain the value assigned from last call. >> > > Typed constant, const /n

[fpc-pascal] Is there a way to declare a static varible in a function body?

2009-11-18 Thread yu ping
Is there a way to declare a static varible in a function body? the varible should remain the value assigned from last call. thanks ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to Copy a Record data to a buffer?

2009-10-10 Thread yu ping
Solved,Thanks there is another mistake: FillChar(sendData, high(sendData), 0); change to FillChar(sendData[0], high(sendData), 0); OK. 2009/10/10 Matthias K. : > Hi, > For the Move solution, use "Move( SendBuffer, rcvData[0],

[fpc-pascal] How to Copy a Record data to a buffer?

2009-10-10 Thread yu ping
TCommsBuffer = packed record UnitID: Byte; FunctionCode: TModBusFunction; MBPData: TModBusDataBuffer; Spare: Byte; end; { TCommsBuffer } SendBuffer: TCommsBuffer; -- I want to send the data in SendBuffer to serial port I define a array type: rcvData:TDa

Re: [fpc-pascal] Meaning of "^M^J"

2009-09-29 Thread yu ping
^A= 1 ^b= 2 ^c= 3 ^d= 4 ^e= 5 ^f= 6 ^g= 7 ^h= 8 ^i= 9 ^j= 10 ^k= 11 ^l= 12 ^m= 13 ^n= 14 ^o= 15 ^p= 16 ^q= 17 ^r= 18 ^s= 19 ^t= 20 ^u= 21 ^v= 22 ^w= 23 ^x= 24 ^y= 25 ^z= 26 I wander how "^" symble works 2009/9/30 Ralf A. Quint : > At 08:48 PM 9/29/2009, yu ping wrote: >> >

[fpc-pascal] Meaning of "^M^J"

2009-09-29 Thread yu ping
I read a source file,found it writes "^M^J" to a output. I don't know what is it's meaning, after test,I think it should be a return char, my question is, where can i find defination of this? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org htt

Re: [fpc-pascal] About extPascal

2009-09-28 Thread yu ping
Yes,It's the problem,I copied it to Appache folder,not the htdoc folder, I move the ext to htdoc folder,it's ok now,thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] About extPascal

2009-09-28 Thread yu ping
thanks, I successfully compile the program,and install the fastcgi on Appache, but when I run the example and view result in browser,I get a blank page. I think maybe my extJS installation has problem,I'm studying extJS installation. ___ fpc-pascal maill

[fpc-pascal] About extPascal

2009-09-27 Thread yu ping
I down loaded the extPascal package when i compile the ExtPascalSamples3.dpr see the following message: Fatal: Can't find unit Ext used by ExtPascal I use the ExtToPascal.exe to compile a example folder in extJS package,failed. I look into the ExtToPascal source code,found it search for "Class"

Re: [fpc-pascal] How to use var or object in a programm file from a unit file

2009-09-24 Thread yu ping
I just now download indy-10.2.0.3.tar.gz - for Unix/Linux system users. and build success on windows. the file indy-10.2.0.3.zip - for Windows users. damaged ,can not be decompressed. when I try to build indy10 files from http://indy.fulgan.com/ZIP/ I get a lot of mistaks: -- make ---

Re: [fpc-pascal] How to use var or object in a programm file from a unit file

2009-09-24 Thread yu ping
Thanks. another question,any one has successful compile indy on FPC? I tried,but did not success. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] How to use var or object in a programm file from a unit file

2009-09-24 Thread yu ping
Program prog1 use unit1 myObj=class private public . end; --- unit unit1 .. like above, can i access myObj in unit1? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailma

Re: [fpc-pascal] Re: Error: Identifier not found "ChooseFont"

2009-09-14 Thread yu ping
thanks, another question,which unit is "PropertySheet" function in? 2009/9/15 Marco van de Voort : > In our previous episode, yu ping said: >> 2009/9/14 yu ping : >> > When I try to use ChooseFont function in my programm,I get following error: >> > test.p

[fpc-pascal] Error: Identifier not found "ChooseFont"

2009-09-14 Thread yu ping
When I try to use ChooseFont function in my programm,I get following error: test.pas(37,35) Error: Identifier not found "ChooseFont" Isn't the function in windows unit? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.o

[fpc-pascal] Re: Error: Identifier not found "ChooseFont"

2009-09-14 Thread yu ping
WindowsXP,fpc224 2009/9/14 yu ping : > When I try to use ChooseFont function in my programm,I get following error: > test.pas(37,35) Error: Identifier not found "ChooseFont" > > Isn't the function in windows unit? > _

Re: [fpc-pascal] Is it possible to create COM server with fpc?

2009-09-08 Thread yu ping
ndows). -- is this near to COM? 2009/9/8 Corrado Valeri : > 2009/9/8 yu ping >> >> Has anyone tried to implement a COM server with FPC?(on windows) >> ___ > > I think that couldn't be possible: COM is a

[fpc-pascal] Is it possible to create COM server with fpc?

2009-09-08 Thread yu ping
Has anyone tried to implement a COM server with FPC?(on windows) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] C-->Pas translation question

2009-09-08 Thread yu ping
how to translate following C code to pascal? enum{IUP_SHOW, IUP_RESTORE, IUP_MINIMIZE, IUP_MAXIMIZE, IUP_HIDE}; thanks ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] FCL-PASSRC

2009-09-03 Thread yu ping
Is there a example using FCL-PASSRC? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpGui git not working?

2009-08-27 Thread yu ping
Thanks 2009/8/28 Henry Vermaak > 2009/8/27 Henry Vermaak : > > 2009/8/27 yu ping : > >> I ever download the fpGui source using git. > >> but now I can't connect the server. > > > > This is not the fpgui mailing list. Graham posted a url change >

[fpc-pascal] fpGui git not working?

2009-08-27 Thread yu ping
I ever download the fpGui source using git. but now I can't connect the server. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] What's the difference between fpc224 and fpc231?

2009-08-20 Thread yu ping
I just download the newest Lazarus which has a newer fpc compiler 2.31version, but I can't find the "what's new" document, then What's the difference between fpc224 and fpc231? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freep

Re: [fpc-pascal] How to install SPComm in lazarus?

2009-08-19 Thread yu ping
Thanks,very good! 2009/8/19 Zaher Dirkey > On Wed, Aug 19, 2009 at 3:50 PM, yu ping wrote: > > SPComm is a delphi Component for serial port communication,I tried to > > install it in lazarus,after i install it,i cannot see the icon in > component > > pannel,i dont know w

[fpc-pascal] How to install SPComm in lazarus?

2009-08-19 Thread yu ping
SPComm is a delphi Component for serial port communication,I tried to install it in lazarus,after i install it,i cannot see the icon in component pannel,i dont know why.any one has used this componet in lazarus?or is there any serial communition component in lazarus? Thanks

[fpc-pascal] About Lazarus Program size

2009-08-17 Thread yu ping
Lazarus generated exe file size is so large,Can it make small size program file? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is there a way to implement COM interface in freepascal?

2009-08-09 Thread yu ping
Thank you 2009/8/10 dmitry boyarintsev > http://lazarus-ccr.sourceforge.net/fpcdoc/ref/refch7.html#x76-840007 > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > --

[fpc-pascal] Is there a way to implement COM interface in freepascal?

2009-08-09 Thread yu ping
-- ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal