Seite 1 von 1

DevC++ .DLL - how to make string inputs/outputs?

Verfasst: Freitag 27. August 2010, 10:50
von Uncle
Halo Forum.
Do someone make .DLL with string inputs/outputs? I can't think out how I can make it. Have some examples of such a module?

Re: DevC++ .DLL - how to make string inputs/outputs?

Verfasst: Montag 30. August 2010, 11:10
von abacom
Please see

...\Examples\New features V40\Strings\DLL\...

in your installation directory.

Re: DevC++ .DLL - how to make string inputs/outputs?

Verfasst: Montag 30. August 2010, 22:10
von Uncle
When I try to load example from C++ builder directoty, I got the message "... VCL35.bpl not found..."

Example from delphi directory works.

May be You have some devC++ example?

Re: DevC++ .DLL - how to make string inputs/outputs?

Verfasst: Mittwoch 1. September 2010, 13:26
von Uncle
I try to realize this example in DevC++, but no success. May be You can help in some topics:
It is in Dll.help function
.. CCalculate (double *PINput, double *POutput, double *PUser),
but in the c++ build in example from NewFeatures4.0 directory
... CCalculate (double *PINput, double *POutput, double *PUser, StringParam PStrings)
may be I misse something, but with such argument list .dll make error in project compilation .
And if I define as in example
typedef unsigned char *PChar;

function strcpy() didn't work with PChar(PStrings[HexOutPin]

So I see no way now to make working with strings .dll.