procedure TVideoForm.Button1Click(Sender: TObject);
var
LibHandle : THandle;
SHowCapture : TSHowCapture;
b: Tbitmap;
begin
LibHandle := LoadLibrary('prCapture.DLL');
try
if LibHandle = 0 then raise EDLLLoadError.Create('Unable to Load DLL');
@SHowCapture := GetProcAddress(LibHandle, 'ShowCapture');
if not (@SHowCapture = nil) then
Image1.Picture.Bitmap := TBitmap(SHowCapture(Handle, nil))
else
RaiseLastWin32Error;
finally
FreeLibrary(LibHandle); // Unload the DLL.
end;
end;
function ShowCapture(AHandle: THandle; AImage: Pointer): Pointer;
var
fCapture: TfCapture;
begin
Result := nil;
Application.Handle := AHandle;
fCapture:= TfCapture.Create(Application);
try
fCapture.ShowModal;
Result := Pointer(fCapture.Image.Picture.Bitmap);
finally
fCapture.Free;
end;
end;
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.