看,我的调用在定义之前,怎么办?(50分)

  • 主题发起人 主题发起人 restart0
  • 开始时间 开始时间
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(dwCardID:DWORD;MpegParam:[blue]MPEGPARAM[/blue]):Boolean;stdcall
external 'tm2kplus.dll';
function tm2kp_SetCaptureParam(dwCardID:DWORD;pMpegParam:^MPEGPARAM):Boolean;stdcall
external 'tm2kplus.dll';

type
[blue]MPEGPARAM[/blue]=record
RateControl:RateControl;
FrameSize:FrameSize;
RecordMode:RecordMode;
Quality:DWORD;
SystemRate:DWORD;
VideoRate:DWORD;
AudioRate:DWORD;
FramePattern:DWORD;
Resvrce: array[0..7]of DWORD;
end;

implementation

end.
 
这样不行吗?我不懂![:D]
unit Unit2;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
MPEGPARAM=record
RateControl:RateControl;
FrameSize:FrameSize;
RecordMode:RecordMode;
Quality:DWORD;
SystemRate:DWORD;
VideoRate:DWORD;
AudioRate:DWORD;
FramePattern:DWORD;
Resvrce: array[0..7]of DWORD;
end;

//===========================
// 录像函数
//===========================
function tm2kp_SetCaptureParam(dwCardID:DWORD;MpegParam:MPEGPARAM):Boolean;stdcall
external 'tm2kplus.dll';
function tm2kp_SetCaptureParam(dwCardID:DWORD;pMpegParam:^MPEGPARAM):Boolean;stdcall
external 'tm2kplus.dll';

implementation

end.
 
dirk的应该没有问题
 
o
~~~~````````````shan
 
接受答案了.
 
后退
顶部