Re: [fpc-pascal] GetClipboardFormatName causing an Error 216

2020-12-31 Thread Alexander Grotewohl via fpc-pascal
yes, this type of thing is why we use Pascal. pchar is your little bucket of ram that FPC in a sense knows nothing about. set it to #0 and pray for the best, cause that's what you do.. -- Alexander Grotewohl https://dcclost.com From: fpc-pascal on behalf of

Re: [fpc-pascal] GetClipboardFormatName causing an Error 216

2020-12-31 Thread Jean SUZINEAU via fpc-pascal
Le 01/01/2021 à 00:48, James Richters via fpc-pascal a écrit : I’m not too familiar with PChars, but is there a way to set it to zero length? I set it to #0 and it works ok with the #0 in there with Notepadd++ but I think it’s technically not correct. For me, it's correct. C strings are

[fpc-pascal] Happy New Year

2020-12-31 Thread Dave Connolly via fpc-pascal
Happy New Year everyone. Keep up the great work. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GetClipboardFormatName causing an Error 216

2020-12-31 Thread James Richters via fpc-pascal
I have my project working the way I want it to, but I have one little quirk I am hoping to fix. When I look at the clipboard, the entry for MSDEVColumnSelect has zero length. I’m not too familiar with PChars, but is there a way to set it to zero length? I set it to #0 and it works ok with the #0

Re: [fpc-pascal] GetClipboardFormatName causing an Error 216

2020-12-31 Thread James Richters via fpc-pascal
I don’t have Lazarus, just FPC, Thanks for the link. Thanks for the information, I understand how it works now. I appreciate the help. James From: fpc-pascal On Behalf Of Martin Frb via fpc-pascal Sent: Thursday, December 31, 2020 12:37 PM To: fpc-pascal@lists.freepascal.org Cc: Martin

Re: [fpc-pascal] GetClipboardFormatName causing an Error 216

2020-12-31 Thread Martin Frb via fpc-pascal
On 31/12/2020 18:11, James Richters via fpc-pascal wrote: Thanks for the info on SynEdit. Where can I find the synedit source related to the clipboard? I think the link you indtended ater 'See the code at.' Didn't come though, can you pleaese send it again? Sorry, I assumed SynEdit would

Re: [fpc-pascal] GetClipboardFormatName causing an Error 216

2020-12-31 Thread James Richters via fpc-pascal
Thanks for the info on SynEdit. Where can I find the synedit source related to the clipboard? I think the link you indtended ater 'See the code at.' Didn't come though, can you pleaese send it again? James -Original Message- From: fpc-pascal On Behalf Of Martin Frb via fpc-pascal

Re: [fpc-pascal] GetClipboardFormatName causing an Error 216

2020-12-31 Thread James Richters via fpc-pascal
Thank you for the help. I always seem to have difficulties understanding how to interface with windows functions. I did see the msdn help.. to me it seemed that lpszFormatName was the LPTSTR variable that would contain the name, but that's not what is being passed to it at all... it's a POINTER

Re: [fpc-pascal] Operators for a class

2020-12-31 Thread Sven Barth via fpc-pascal
Am 31.12.2020 um 17:26 schrieb Gabor Boros via fpc-pascal: Hi All, I try to convert some C++ source to FPC, see below a short example from it. How can I define same operator with FPC trunk? class Cla {     INT64   Num; public:     Cla operator +(const Cla& m)     {     Cla  ret(this);  

[fpc-pascal] Operators for a class

2020-12-31 Thread Gabor Boros via fpc-pascal
Hi All, I try to convert some C++ source to FPC, see below a short example from it. How can I define same operator with FPC trunk? class Cla { INT64 Num; public: Cla operator +(const Cla& m) { Cla ret(this); ret.Num += m.Num; return ret; } Gabor