有没有人有在Delphi中使用IAR VisualState的ExpertR9.dll库的通用工作示例?
发布于 2011-11-21 23:09:29
下面是一个使用‘late’绑定加载SEM的DELPHI示例:
Var
DLLhandle : THandle;
Function SEM_Load(sStatemachineFilename : String) : Byte;
var
Foo: function (filename : PChar) : Byte; {$IFDEF WIN32} stdcall; {$ENDIF}
ProcAddres : farproc;
cc: Byte;
begin
ProcAddres := GetProcAddress(DLLhandle, 'SEM_Load');
If @ProcAddres <> NIL then
Begin
Foo := ProcAddres;
cc := Foo(Pchar(sStatemachineFilename));
End;
Result := cc;
end;https://stackoverflow.com/questions/7731246
复制相似问题