最近在做一个视频采集得项目,用的是C#,在调整视频的亮度的时候遇到点麻烦,查阅了提供的sdk,是用c++做的,其中有一段调用亮度的代码,不是很懂,请教各位大侠
static char rcsid[] = "$Id: vxdcall.cpp 2.10 1998/06/01 18:03:03 mdimeo Exp $" ;
#define _BUILD_BT848DLL // all __BT848FUNC functions are exported#include "Bt848fcn.h"
#include "vxdfunc.h"/////////////////////////////////////////////////////////////////////////////
// Public Variable
/////////////////////////////////////////////////////////////////////////////
HANDLE hVxD; // handle to VxD
//===========================================================================
// Functions thunk down to capture driver
//===========================================================================
extern "C" int DRV_SetVideoSource( int conn );
extern "C" int DRV_GetVideoSource( void );
extern "C" int DRV_SetBrightness( int brightness );
extern "C" int DRV_GetBrightness( void );/////////////////////////////////////////////////////////////////////////////
// Method: ErrorCode __BT848FUNC Bt848GetBrightness( int * brightness )
// Purpose: Ask VxD what brightness value has set to
// Input: None
// Output: int * brightness - brightness value
// Return: Success or Fail
/////////////////////////////////////////////////////////////////////////////
ErrorCode __BT848FUNC Bt848GetBrightness( int * brightness )
{
*brightness = DRV_GetBrightness();
if ( (*brightness < 0) || (*brightness > 255) )
return ( Fail );
return( Success );
}哪位大侠能帮忙解释一下,应该如何编译成dll,或者调用呢
static char rcsid[] = "$Id: vxdcall.cpp 2.10 1998/06/01 18:03:03 mdimeo Exp $" ;
#define _BUILD_BT848DLL // all __BT848FUNC functions are exported#include "Bt848fcn.h"
#include "vxdfunc.h"/////////////////////////////////////////////////////////////////////////////
// Public Variable
/////////////////////////////////////////////////////////////////////////////
HANDLE hVxD; // handle to VxD
//===========================================================================
// Functions thunk down to capture driver
//===========================================================================
extern "C" int DRV_SetVideoSource( int conn );
extern "C" int DRV_GetVideoSource( void );
extern "C" int DRV_SetBrightness( int brightness );
extern "C" int DRV_GetBrightness( void );/////////////////////////////////////////////////////////////////////////////
// Method: ErrorCode __BT848FUNC Bt848GetBrightness( int * brightness )
// Purpose: Ask VxD what brightness value has set to
// Input: None
// Output: int * brightness - brightness value
// Return: Success or Fail
/////////////////////////////////////////////////////////////////////////////
ErrorCode __BT848FUNC Bt848GetBrightness( int * brightness )
{
*brightness = DRV_GetBrightness();
if ( (*brightness < 0) || (*brightness > 255) )
return ( Fail );
return( Success );
}哪位大侠能帮忙解释一下,应该如何编译成dll,或者调用呢
http://www.vckbase.com/document/viewdoc/?id=580
__declspec(export)