我如何从DLL中传递pchar?dll必须与其他应用程序兼容,而不仅仅是delphi。在“帮助”中,传递指向局部变量的指针是危险的,如果我们将该变量设置为全局变量,则代码将不会是线程安全的。{code in dll} var beginstr:='Some string';
result:=pchar(str); // wrong way, may
removed functions thjat are already workingfunction TDCDSPFilter.get_FilterName(Index : integer; out Name : PChar): HRESULT; stdcallWITH_INTERNAL_DSP} if (Index < 0) or (Index