Delphi2006を使用したdllビルド
Foo(aPath: widestring);
begin
_rootPath := aPath;
end;
Delphi2010でビルドされた実行可能ファイル
_Foo := GetProcAddress(FooModule,’Foo’);
_Foo(‘123456’);
dllにステップインすると、aPath='123'になります。実際、私が渡す文字列はすべて正確に半分にカットされます。
1.)文字通り半分になるのはなぜですか?2.)どうすれば修正できますか?