Has anyone tried to use the Plugin API with Delphi XE.
Up until now I have been happily working wih Ansi strings and Chars in Delphi 2007, however, as Delphi XE is now Unicode based all my Chars are WideStrings and David B's Plugin examples do not compile.
e.g. (This is my code not davids but the point is the same....)
Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?
Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE
Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS
Function TideInterface.GetIDEPath():String;
Var
Buffer: Array of Char
Begin
If plgIsConnected then
begin
SetLength(Buffer, 256);
plgGetPathIDE(PChar(Buffer),256);
Result := PChar(Buffer);
end;
Buffer := Nil;
end;
I tried converting to AnsiChar and PAnsiChar and although it got through with warnings - e.g. Suspicious type canse to PAnsiChar. mcplugInMgr.dll reported Access violation when I tried to run it under the IDE.
So how now do I send and receice asci strings through the API in XE?


Reply With Quote



