받는곳
C++builder:
typedef const wchar_t* (__stdcall * _DIM_GETWOKDATA)(int AResultIndex, int AGroup,int AElement);
String strData,strTemp;
HINSTANCE hLibrary;
_DIM_GETWOKDATA DIM_GETWOKDATA;
hLibrary=LoadLibrary(Path.c_str());
if (hLibrary!=NULL)
strData =DIM_GETWOKDATA(i, 0x0010, 0x0020); //English
StGrWorklist->Cells[1][i+1] = strData;
-------------------------------------------------------------------------------------
문자열 보내는 곳
DLL 파일로 만들어 보낼려고 합니다.
Delphi :
function TForm1.DIM_GETWOKDATA(AResultIndex, AGroup, AElement: Integer): PWideChar; stdcall;
var
str1 : string;
begin
...
str1 := '大韓民國';
Result := PWideChar(str1)
end;
글자가 깨져서 고수님
글자보내는 부분을 어떻게 해야하고 받는 부분을 어찌 해야되나요?
|