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
also use any suggestions and examples for writing DLL in C/C++. On 06/06/2015 12:00, fpc-pascal-requ...@lists.freepascal.org wrote: Date: Sat, 6 Jun 2015 04:16:29 -0300 From: luciano de souza To: fpc-pascal Subject: [fpc-pascal] Writing a DLL to be use in a VBA code Message-ID: Content

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: