J
Joey Sabey
Hey, I've got a bit of a strange problem caused by a situation I'm in.
I'm writing a DLL for a friend of mine in C++, and he plans to use it
in delphi. The DLL needs to return strings, and we doubt that a string
would return well to a delphi program, so the only thing I could think
of was returning a char*, which obviously would be very dangerous as
the array would be being declared as a local variable and would only be
returning it's address.
Anyway, anyone know a solution to such a problem? I can't think of
anything myself, as I'm not that an experienced C++ programmer as it
is, and the whole delphi aspect complicates things for me, as I know
nothing of it.
I'm writing a DLL for a friend of mine in C++, and he plans to use it
in delphi. The DLL needs to return strings, and we doubt that a string
would return well to a delphi program, so the only thing I could think
of was returning a char*, which obviously would be very dangerous as
the array would be being declared as a local variable and would only be
returning it's address.
Anyway, anyone know a solution to such a problem? I can't think of
anything myself, as I'm not that an experienced C++ programmer as it
is, and the whole delphi aspect complicates things for me, as I know
nothing of it.