블로그 이미지
훅크선장

카테고리

분류 전체보기 (362)
사진이야기 (23)
펭귄컴퓨팅 (121)
컴퓨터보안 (84)
절름발이 프로그래머 (59)
하드웨어개조 (23)
멀알려줄까 (35)
홈베이킹&홈쿠킹 (2)
잡다한것들 (15)
Total
Today
Yesterday

달력

« » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

공지사항

태그목록

최근에 올라온 글

http://www.programmersheaven.com/mb/delphikylix/245467/245467/pointer-to-function/
를 참고하였습니다.

---------------------------------------------------------------------------

type
TFuncPtr = function(arg1: Integer; arg2: PChar): Integer; stdcall;
TProcThread = class(TThread)
  ...
protected
  procedure SyncProc(Data: Pointer);
  ...
end;
function MyFunc(arg1: Integer; arg2: PChar): Integer; stdcall; 

procedure SetSyncProc(argFunc: TFuncPtr); external;

constructor TProcThread.Create;
begin
 ...
 SetSyncProc(MyFunc);
 ...
end;


Posted by 훅크선장
, |