Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using the mmcontrol activex
Message
 
To
All
General information
Forum:
Visual C++
Category:
ActiveX
Title:
Using the mmcontrol activex
Miscellaneous
Thread ID:
00654790
Message ID:
00654790
Views:
49
Hello people, i using the mmcontrol activex for see mpg movie, i need see a corporate movie. works, but i want put the video in the dialog window,

in the part:
m_mmcontrol.SetHWndDisplay(); y put m_mmcontrol.SetHWndDisplay(m_hWnd); but i obtain this error:

D:\vc\LOGO\LOGODlg.cpp(119) : error C2664: 'SetHWndDisplay' : cannot convert parameter 1 from 'struct HWND__ *' to 'long'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast

what can i do?

thanks for any help

Best regards

Francisco Morosini




BOOL CLOGODlg::OnInitDialog()
{
CDialog::OnInitDialog();

// Add "About..." menu item to system menu.

// IDM_ABOUTBOX must be in the system command range.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);

CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}

// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon

// TODO: Add extra initialization here
m_mmcontrol.SetHWndDisplay(m_hWnd);
m_mmcontrol.SetFileName( "d:\\101.mpg");
m_mmcontrol.SetCommand ("Open");
m_mmcontrol.SetCommand ("Play");
return TRUE; // return TRUE unless you set the focus to a control
}
Reply
Map
View

Click here to load this message in the networking platform