13,825
社区成员
发帖
与我相关
我的任务
分享
fplyr1->OnVideoHook = (TVideoHookEvent)&fplyr1VideoHook ;
[BCC32 Error] Unit1.cpp(19): E2015 Ambiguity between 'TVideoHookEvent' and 'Ffmpeg::TVideoHookEvent'
Full parser context
Unit1.cpp(17): parsing: _fastcall TForm1::TForm1(TComponent *)
改成这样后也不行
fplyr1->OnVideoHook = (Ffmpeg::TVideoHookEvent)&fplyr1VideoHook ;
[BCC32 Error] Unit1.cpp(19): E2034 Cannot convert 'TVideoHookEvent' to 'TVideoHookEvent'
Full parser context
Unit1.cpp(17): parsing: _fastcall TForm1::TForm1(TComponent *)
void __fastcall fplyr1AudioHook(TObject *Sender, const __int64 APTS, Byte *ASample,
int ASize, int ASampleRate, int AChannels);
void __fastcall fplyr1AudioHook(TObject *Sender, const __int64 APTS, ::PByte ASample,
int ASize, int ASampleRate, int AChannels);
[BCC32 Error] Unit1.h(44): E2015 Ambiguity between 'PByte' and 'System::PByte'
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(20): class TForm1void __fastcall TForm1::fplyr1VideoHook(TObject *Sender, Graphics::TBitmap *ABitmap, const __int64 APTS, bool &AUpdate)
{
...
}
然后在Form1的构造函数中:
fplyr1->OmVideoHook = (TVideoHookEvent)&fplyr1VideoHook;