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

Antworten
Uncle
Beiträge: 32
Registriert: Donnerstag 12. August 2010, 21:32

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

Beitrag von Uncle » Freitag 27. August 2010, 10:50

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?

abacom
Site Admin
Beiträge: 3917
Registriert: Dienstag 23. September 2008, 10:54
Kontaktdaten:

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

Beitrag von abacom » Montag 30. August 2010, 11:10

Please see

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

in your installation directory.
ABACOM support

Uncle
Beiträge: 32
Registriert: Donnerstag 12. August 2010, 21:32

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

Beitrag von Uncle » Montag 30. August 2010, 22:10

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?

Uncle
Beiträge: 32
Registriert: Donnerstag 12. August 2010, 21:32

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

Beitrag von Uncle » Mittwoch 1. September 2010, 13:26

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.

Antworten

Zurück zu „DLL-Programmierung“