DislikedI think I will simply download Lazarus.... by the way what is this advantage that Lazarus have and Delphi not ?
so about the code: when I am doing as this :
[code]
function foo(x: double; y: PChar): PChar; stdcall;
var...Ignored
You could also try to declare a variable of type ansistring and fill this variable with ansistring(y) and then do the string concatenation with that variable instead of using y directly.
It would be interesting to not simply give up at this point and instead try to find out what it needs to make this code run with Delphi, this would provide some interesting insights.
The two main advantages of Lazarus over Delphi are for me:
- it is open source and this means it will exist forever and not suddenly disappear or be otherwise unavailable or unusable like it inevitably happens to all commercial software products sooner or later. (Hint: Kylix)
- it is available on more platforms than only windows, it is available for Linux (important for me) and Mac and for the most commonly used different processor architectures and I can just simply compile the same program without any changes or any other special prerequisites on any of the supported platforms.