Q&A

  • dll 함수변환
안녕하세요...
밑에 있는것을  델파이로 옮겨야 되는데...
초짜라 막막 하네요....
변환좀 부탁드립니다..
불쌍히 여기시어..
<!--CodeS-->
#define VC  //for VC compiler
//#define CB //for C++Builder compiler

#ifdef VC
#define DLLIMPORT __declspec(dllimport)
#endif

#ifdef CB
#define DLLIMPORT extern "C"
#endif

//{{Common define
#define Err_Unknown      -1
#define Err_InvalidParameter   -2
#define Err_PlayListOverrun    -3
#define Err_InvalidState    -4
#define Err_PlayListIsEmpty    -5
#define Err_DirectShow     -6
#define Err_OpenFile     -7
#define Err_DriverNotSupport   -8
#define Err_CannotOverlapCutIn   -9
#define Err_CannotOpenFile    -10
//}}

typedef enum
{
DIGITAL_AUDIO,
PCM_AUDIO,
AC3_AUDIO
} AUDIO_OUTPUT;

typedef enum
{
STEREO,
LEFT_ONLY,   // Right channel output on both speakers
RIGHT_ONLY   // Left channel output on both speakers
} AUDIO_CHANNEL, *PAUDIO_CHANNEL;

DLLIMPORT int __stdcall x847Init();
DLLIMPORT int __stdcall x847GetSDKVersion();
DLLIMPORT int __stdcall x847GetTotalChannelNumber();
DLLIMPORT int __stdcall x847GetChInfo(int iChNum, char* pszBuffer, unsigned long nBufferLength);
DLLIMPORT int __stdcall x847GetHDVersion(int iChNum);//not support now

DLLIMPORT int __stdcall x847StartPlayFile(int iChNum, HANDLE hAddFileEvent, HANDLE hCompleteEvent, BOOL bMPEG2 = TRUE);
DLLIMPORT int __stdcall x847StopPlayFile(int iChNum);
DLLIMPORT int __stdcall x847PlayFileListClear(int iChNum);
DLLIMPORT int __stdcall x847PlayFileListAdd(int iChNum, char* szFileName);
DLLIMPORT int __stdcall x847PlayFileListDynamicAdd(int iChNum, char* szFileName);
DLLIMPORT int __stdcall x847PlayFilePause(int iChNum);
DLLIMPORT int __stdcall x847PlayFileResume(int iChNum);
DLLIMPORT int __stdcall x847PlayFileGetCurPos(int iChNum, LONGLONG* pCurrent);//not support now

//support mpeg1,mpeg2,avi format
DLLIMPORT int __stdcall x847GetMpegFileDuration(char* szFileName, LONGLONG* pDuration);

DLLIMPORT int __stdcall x847StartCutInPlayFile(int iChNum, HANDLE hAddFileEvent, HANDLE hCompleteEvent);
DLLIMPORT int __stdcall x847CutInPlayFileListClear(int iChNum);
DLLIMPORT int __stdcall x847CutInPlayFileListAdd(int iChNum, char* szFileName);
DLLIMPORT int __stdcall x847CutInPlayFileListDynamicAdd(int iChNum, char* szFileName);
DLLIMPORT int __stdcall x847StopCutInPlayFile(int iChNum);

DLLIMPORT int __stdcall x847CfgShowCfgDialogPage(int iChNum, HWND hwndOwner);
DLLIMPORT int __stdcall x847CfgSetDefaultValue(int iChNum);
DLLIMPORT int __stdcall x847CfgVideoSetBrightness(int iChNum, long lBrightness);
DLLIMPORT int __stdcall x847CfgVideoSetSaturation(int iChNum, long lSaturation);
DLLIMPORT int __stdcall x847CfgVideoSetContrast(int iChNum, long lContrast);
DLLIMPORT int __stdcall x847CfgVideoOutput(int iChNum, int TvStandard); //0:Multi-System, 1:NTSC, 2:PAL, 3:PAL60
DLLIMPORT int __stdcall x847CfgAudioSetVolume(int iChNum, long lVolume);
DLLIMPORT int __stdcall x847CfgAudioSetLeftBalance(int iChNum, long lLeftBalance);
DLLIMPORT int __stdcall x847CfgAudioSetRightBalance(int iChNum, long lRightBalance);
DLLIMPORT int __stdcall x847CfgAudioSetOutput(int iChNum, AUDIO_OUTPUT AudioOutput);
DLLIMPORT int __stdcall x847CfgAudioSetChannel(int iChNum, AUDIO_CHANNEL AudioChannel);

DLLIMPORT int __stdcall x847Test(int iChNum);
<!--CodeE-->
0  COMMENTS