Urgent ! How to Declare VC Dll in VB
-
Hi All: I have this function in VC DLL that I would like to call with VB but I am not sure how to declare it. VC Function: Syntax: void _stdcall PlayRequest( DWORD ClientHandle, //Input parameters long OutputChannel, //Input parameters DWORD PlayerHandle, //Input parameters PlayerInitData SegmentInfo, //Structure; //Input parameters OSDInitStruct DisplayInfo, //Structure; //Input parameters PlaySpeedType PlaySpeed, //Input parameters LONGLONG *pActualStart, //Output LONGLONG *pActualEnd, //Output VideoType *pTypeOfVideo, //Output bool MOL, //Input void *CMDReserved[20], //An array of pointers reserved for future use. Should be NULL. // Input void *RSTReserved[10], //An array of pointers reserved for future use. Should be NULL.// Output AOUResult *pResult //Output ); PlayerInitData A structure used to initialize the player. Syntax: typedef struct{ TCHAR LoggerIPAddress[40]; long TokenNumber; long ChannelID; LoggerTime StartTime; LoggerTime EndTime; long ChannelType; }PlayerInitData; LoggerTime A structure used for Recorder time Syntax: typedef struct { long lDate; long lTime; }LoggerTime; OSDInitStruct A structure used to set the information displayed in the On-screen Display. Syntax: typedef struct { COLORREF m_colorText; //Long LOGFONT m_fontText; //Structure TCHAR m_szStaticText[40]; DWORD m_dwOSDBitmap; } OSDInitStruct; /* Logical Font */ #define LF_FACESIZE 32 typedef struct tagLOGFONTA { LONG lfHeight; LONG lfWidth; LONG lfEscapement; LONG lfOrientation; LONG lfWeight; BYTE lfItalic; BYTE lfUnderline; BYTE lfStrikeOut; BYTE lfCharSet; BYTE lfOutPrecision; BYTE lfClipPrecision; BYTE lfQuality; BYTE lfPitchAndFamily; CHAR lfFaceName[LF_FACESIZE]; } LOGFONTA, *PLOGFONTA, NEAR *NPLOGFONTA, FAR *LPLOGFONTA; typedef struct tagLOGFONTW { LONG lfHeight; LONG lfWidth; LONG lfEscapement; LONG lfOrientation; LONG lfWeight; BYTE lfItalic; BYTE lfUnderline; BYTE lfStrikeOut; BYTE lfCharSet; BYTE lfOutPrecision; BYTE lfClipPrecision; BYTE lfQuality; BYTE lfPitchAndFamily; WCHAR lfFaceName[LF_FAC