R
restart0
Unregistered / Unconfirmed
GUEST, unregistred user!
我的调用在定义之前,怎么办?注意蓝色的MPEGPARAM记录类型
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
//===========================
// 录像函数
//===========================
function tm2kp_SetCaptureParam(dwCardIDWORD;MpegParam:[blue]MPEGPARAM[/blue]):Boolean;stdcall
external 'tm2kplus.dll';
function tm2kp_SetCaptureParam(dwCardIDWORD;pMpegParam:^MPEGPARAM):Boolean;stdcall
external 'tm2kplus.dll';
type
[blue]MPEGPARAM[/blue]=record
RateControl:RateControl;
FrameSize:FrameSize;
RecordMode:RecordMode;
QualityWORD;
SystemRateWORD;
VideoRateWORD;
AudioRateWORD;
FramePatternWORD;
Resvrce: array[0..7]of DWORD;
end;
implementation
end.
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
//===========================
// 录像函数
//===========================
function tm2kp_SetCaptureParam(dwCardIDWORD;MpegParam:[blue]MPEGPARAM[/blue]):Boolean;stdcall
external 'tm2kplus.dll';
function tm2kp_SetCaptureParam(dwCardIDWORD;pMpegParam:^MPEGPARAM):Boolean;stdcall
external 'tm2kplus.dll';
type
[blue]MPEGPARAM[/blue]=record
RateControl:RateControl;
FrameSize:FrameSize;
RecordMode:RecordMode;
QualityWORD;
SystemRateWORD;
VideoRateWORD;
AudioRateWORD;
FramePatternWORD;
Resvrce: array[0..7]of DWORD;
end;
implementation
end.