Click here to Skip to main content
15,913,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralActive X import Pin
vijisu28-Nov-03 16:02
vijisu28-Nov-03 16:02 
GeneralRuntime error Pin
oun28-Nov-03 15:12
oun28-Nov-03 15:12 
Generalerror message Pin
oun28-Nov-03 15:22
oun28-Nov-03 15:22 
GeneralRe: error message Pin
Shanmuga Sundar28-Nov-03 16:26
Shanmuga Sundar28-Nov-03 16:26 
Generalusing #import Pin
vijisu28-Nov-03 13:54
vijisu28-Nov-03 13:54 
GeneralRe: using #import Pin
GeMe_Hendrix2-Dec-03 11:52
GeMe_Hendrix2-Dec-03 11:52 
GeneralRe: using #import Pin
coralsnake_21-Dec-03 7:37
coralsnake_21-Dec-03 7:37 
GeneralDeclare VC DLL in VB Pin
BMWCouple28-Nov-03 12:54
BMWCouple28-Nov-03 12:54 
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_FACESIZE];
} LOGFONTW, *PLOGFONTW, NEAR *NPLOGFONTW, FAR *LPLOGFONTW;

#ifdef UNICODE
typedef LOGFONTW LOGFONT;
typedef PLOGFONTW PLOGFONT;
typedef NPLOGFONTW NPLOGFONT;
typedef LPLOGFONTW LPLOGFONT;
#else
typedef LOGFONTA LOGFONT;
typedef PLOGFONTA PLOGFONT;
typedef NPLOGFONTA NPLOGFONT;
typedef LPLOGFONTA LPLOGFONT;
#endif // UNICODE


Thanks
GeneralRe: Declare VC DLL in VB Pin
Mike Dimmick28-Nov-03 13:12
Mike Dimmick28-Nov-03 13:12 
GeneralRe: Declare VC DLL in VB Pin
BMWCouple1-Dec-03 1:55
BMWCouple1-Dec-03 1:55 
QuestionHow to set the "Dialog Focus" in Dialog Based Application Pin
eshban28428-Nov-03 9:56
eshban28428-Nov-03 9:56 
AnswerRe: How to set the "Dialog Focus" in Dialog Based Application Pin
suiram4028-Nov-03 11:17
suiram4028-Nov-03 11:17 
AnswerRe: How to set the "Dialog Focus" in Dialog Based Application Pin
l a u r e n29-Nov-03 13:39
l a u r e n29-Nov-03 13:39 
QuestionHow to identify a computer in a LAN from the internet? Pin
ray_li28-Nov-03 9:50
ray_li28-Nov-03 9:50 
AnswerRe: How to identify a computer in a LAN from the internet? Pin
suiram4028-Nov-03 11:13
suiram4028-Nov-03 11:13 
QuestionSpinBottonCtrl Limit? Pin
sdfdsfa28-Nov-03 9:24
sdfdsfa28-Nov-03 9:24 
AnswerRe: SpinBottonCtrl Limit? Pin
suiram4028-Nov-03 11:16
suiram4028-Nov-03 11:16 
Generalreading file properties. Pin
pnpfriend28-Nov-03 9:03
pnpfriend28-Nov-03 9:03 
GeneralStack Overflow Q Pin
suiram4028-Nov-03 9:02
suiram4028-Nov-03 9:02 
GeneralRe: Stack Overflow Q Pin
igor196028-Nov-03 10:41
igor196028-Nov-03 10:41 
GeneralRe: Stack Overflow Q Pin
suiram4028-Nov-03 11:05
suiram4028-Nov-03 11:05 
GeneralRe: Stack Overflow Q Pin
igor196028-Nov-03 11:58
igor196028-Nov-03 11:58 
QuestionStreet address parsing? Pin
Ed K28-Nov-03 8:28
Ed K28-Nov-03 8:28 
AnswerRe: Street address parsing? Pin
JWood28-Nov-03 10:18
JWood28-Nov-03 10:18 
GeneralRe: Street address parsing? Pin
User 58385230-Nov-03 17:06
User 58385230-Nov-03 17:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.