Re: [fpc-pascal] p2js - pascal to javascript compiler

2015-06-06 Thread Bee
The interesting part of this product is it tries to compile all the FPC RTL into Javascript as well. Unlike Smart Pascal. So we don't just have Pascal to Javascript translator but also with all the useful RTL. Btw, it seems that it targets only Windows platform. I failed when I tried to compile it

Re: [fpc-pascal] p2js - pascal to javascript compiler

2015-06-06 Thread Michael Van Canneyt
On Sat, 6 Jun 2015, Bee wrote: Hi, Take a look at this interesting product: http://p2js.gelicon.biz/en It's build upon FPC source and has GPL license. It looks interesting. Perhaps we can use this to boost FPC's pas2js tool? I have already looked into it and took some ideas from it. Halfw

[fpc-pascal] p2js - pascal to javascript compiler

2015-06-06 Thread Bee
Hi, Take a look at this interesting product: http://p2js.gelicon.biz/en It's build upon FPC source and has GPL license. It looks interesting. Perhaps we can use this to boost FPC's pas2js tool? Regards, -- -Bee- ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Writing a DLL to be use in a VBA code

2015-06-06 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > function concatenate(name: string): string; cdecl; > > begin > > result := 'Freepascal ' + name; > > end; > > No, IMHO you will need to use pchar everywhere. VBA might understand WIDESTRING ? ___ fp

[fpc-pascal] Writing a DLL to be use in a VBA code

2015-06-06 Thread Serguei TARASSOV
Luciano, you should follow binary compatible DLL requirements : - stdcall call convention - ordinal types only (shortstring may work too because they are char[256] and 0-th byte is the length) - pointers (be attentive: if memory was allocated in DLL, you should free it in DLL too) You can al

Re: [fpc-pascal] Writing a DLL to be use in a VBA code

2015-06-06 Thread luciano de souza
Thank you for the always rapid and gentile reply. Well, if there's no way to avoid pchar, let's go to pchar! 2015-06-06 4:27 GMT-03:00, Michael Van Canneyt : > > > On Sat, 6 Jun 2015, luciano de souza wrote: > >> Hello all, >> >> At work, I need to create a Excel sheet containing certain more >> c

Re: [fpc-pascal] Writing a DLL to be use in a VBA code

2015-06-06 Thread Michael Van Canneyt
On Sat, 6 Jun 2015, luciano de souza wrote: Hello all, At work, I need to create a Excel sheet containing certain more complex functions. I tried to use only VBA, but I released I will more productive if I could use a DLL writen in Pascal for the heavier code. Let see this DLL: library test

[fpc-pascal] Writing a DLL to be use in a VBA code

2015-06-06 Thread luciano de souza
Hello all, At work, I need to create a Excel sheet containing certain more complex functions. I tried to use only VBA, but I released I will more productive if I could use a DLL writen in Pascal for the heavier code. Let see this DLL: library test; {$mode objfpc}{$H+} function concatenate(name: