Click here to Skip to main content
15,922,166 members
Home / Discussions / COM
   

COM

 
AnswerRe: How to create a COM in singleton Pin
William.Wang9-Aug-05 21:42
William.Wang9-Aug-05 21:42 
GeneralRe: How to create a COM in singleton Pin
jimsleon0019-Aug-05 22:26
jimsleon0019-Aug-05 22:26 
GeneralRe: How to create a COM in singleton Pin
William.Wang10-Aug-05 17:18
William.Wang10-Aug-05 17:18 
AnswerRe: How to create a COM in singleton Pin
Jörgen Sigvardsson11-Aug-05 12:08
Jörgen Sigvardsson11-Aug-05 12:08 
GeneralExporting .Net Basic STL data types Pin
mohsin_m8-Aug-05 21:31
mohsin_m8-Aug-05 21:31 
GeneralExporting .Net native data types to C# Pin
mohsin_m8-Aug-05 21:21
mohsin_m8-Aug-05 21:21 
QuestionHow to create Plug-in for Win32 based IDE. Pin
Manish Paul8-Aug-05 20:07
Manish Paul8-Aug-05 20:07 
GeneralEmbedding windows media player in visual c++ .net projects Pin
c+-8-Aug-05 17:59
c+-8-Aug-05 17:59 
I have a dialog based application very simple (visual c++ .net). i added a windows media player control to the dialog resource. next i gave an id IDC_PLAYER. next i added a variable called m_ctrlPlayer(Add Variable). I have also a button (play) and below is the event handler for that button.

void CWindowMediaDlg::OnBnClickedPlay()
{
// TODO: Add your control notification handler code here
m_ctrlPlayer.GetControls().play();
}
i get this error when i try to compile the project....

error C2039: 'GetControls' : is not a member of 'COcx1'
ocx1.h(11) : see declaration of 'COcx1'
error C2228: left of '.play' must have class/struct/union type

and here is how COcx1 looks...

#pragma once

// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.

/////////////////////////////////////////////////////////////////////////////
// COcx1 wrapper class

class COcx1 : public CWnd
{
protected:
DECLARE_DYNCREATE(COcx1)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x6BF52A52, 0x394A, 0x11D3, { 0xB1, 0x53, 0x0, 0xC0, 0x4F, 0x79, 0xFA, 0xA6 } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
}

BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey);
}

// Attributes
public:
enum
{
amvUninitialized = 0,
amvLoading = 1,
amvInteractive = 3,
amvComplete = 4
}ReadyStateConstants;
enum
{
mpStopped = 0,
mpPaused = 1,
mpPlaying = 2,
mpWaiting = 3,
mpScanForward = 4,
mpScanReverse = 5,
mpClosed = 6
}MPPlayStateConstants;
enum
{
mpDefaultSize = 0,
mpHalfSize = 1,
mpDoubleSize = 2,
mpFullScreen = 3,
mpFitToSize = 4,
mpOneSixteenthScreen = 5,
mpOneFourthScreen = 6,
mpOneHalfScreen = 7
}MPDisplaySizeConstants;
enum
{
mpReadyStateUninitialized = 0,
mpReadyStateLoading = 1,
mpReadyStateInteractive = 3,
mpReadyStateComplete = 4
}MPReadyStateConstants;
enum
{
mpTime = 0,
mpFrames = 1
}MPDisplayModeConstants;
enum
{
mpShowURL = 0,
mpClipURL = 1,
mpBannerURL = 2
}MPMoreInfoType;
enum
{
mpShowFilename = 0,
mpShowTitle = 1,
mpShowAuthor = 2,
mpShowCopyright = 3,
mpShowRating = 4,
mpShowDescription = 5,
mpShowLogoIcon = 6,
mpClipFilename = 7,
mpClipTitle = 8,
mpClipAuthor = 9,
mpClipCopyright = 10,
mpClipRating = 11,
mpClipDescription = 12,
mpClipLogoIcon = 13,
mpBannerImage = 14,
mpBannerMoreInfo = 15,
mpWatermark = 16
}MPMediaInfoType;
enum
{
dvdMenu_Title = 2,
dvdMenu_Root = 3,
dvdMenu_Subpicture = 4,
dvdMenu_Audio = 5,
dvdMenu_Angle = 6,
dvdMenu_Chapter = 7
}DVDMenuIDConstants;
enum
{
mpShowDialogHelp = 0,
mpShowDialogStatistics = 1,
mpShowDialogOptions = 2,
mpShowDialogContextMenu = 3
}MPShowDialogConstants;


// Operations
public:



};

someone pleaze tell me how i fix this problem. thax


thanx hussein
QuestionHow to get CLSID given ActiveX control Name Pin
Ashwin kumar Gurujala8-Aug-05 3:52
Ashwin kumar Gurujala8-Aug-05 3:52 
AnswerRe: How to get CLSID given ActiveX control Name Pin
vishalmore8-Aug-05 4:10
vishalmore8-Aug-05 4:10 
GeneralRe: How to get CLSID given ActiveX control Name Pin
Ashwin kumar Gurujala8-Aug-05 19:29
Ashwin kumar Gurujala8-Aug-05 19:29 
GeneralRe: How to get CLSID given ActiveX control Name Pin
vishalmore8-Aug-05 19:42
vishalmore8-Aug-05 19:42 
AnswerRe: How to get CLSID given ActiveX control Name Pin
MohammadAmiry8-Aug-05 21:33
MohammadAmiry8-Aug-05 21:33 
GeneralRe: How to get CLSID given ActiveX control Name Pin
Ashwin kumar Gurujala8-Aug-05 22:21
Ashwin kumar Gurujala8-Aug-05 22:21 
Generalnamespace in a com atl project in VC6 Pin
MihaiChioariu7-Aug-05 9:34
MihaiChioariu7-Aug-05 9:34 
Generalis any COM useful for IVR Pin
Member 14246356-Aug-05 7:30
Member 14246356-Aug-05 7:30 
Questionhow to receive calls in asp.net Pin
Member 14246356-Aug-05 7:19
Member 14246356-Aug-05 7:19 
GeneralCOM-DLL for use in VB and C# projects Pin
MihaiChioariu6-Aug-05 2:00
MihaiChioariu6-Aug-05 2:00 
QuestionHow to read AVI header Pin
dracero5-Aug-05 11:14
dracero5-Aug-05 11:14 
GeneralRegister a COM object Pin
Spaz805-Aug-05 2:23
Spaz805-Aug-05 2:23 
GeneralRe: Register a COM object Pin
MohammadAmiry7-Aug-05 2:49
MohammadAmiry7-Aug-05 2:49 
Generalsize of property pages of activex controls built using MFC Pin
Tulika Shrivastava5-Aug-05 0:28
Tulika Shrivastava5-Aug-05 0:28 
GeneralPlug-in for Win32 based IDE. Pin
Manish Paul4-Aug-05 19:46
Manish Paul4-Aug-05 19:46 
QuestionAbout Word Addin of adding a bmp? Pin
sharkmouse4-Aug-05 13:40
sharkmouse4-Aug-05 13:40 
GeneralActiveX Component Pin
Neelesh K J Jain4-Aug-05 6:38
Neelesh K J Jain4-Aug-05 6:38 

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.