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

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