Click here to Skip to main content
15,899,754 members
Home / Discussions / COM
   

COM

 
QuestionPassing structure through variant Pin
ATM@CodeProject27-Jan-09 21:47
ATM@CodeProject27-Jan-09 21:47 
AnswerRe: Passing structure through variant Pin
prasad_som28-Jan-09 1:00
prasad_som28-Jan-09 1:00 
GeneralRe: Passing structure through variant Pin
ATM@CodeProject28-Jan-09 19:29
ATM@CodeProject28-Jan-09 19:29 
AnswerRe: Passing structure through variant Pin
prasad_som28-Jan-09 23:00
prasad_som28-Jan-09 23:00 
QuestionWebBrowser Control - intercept requests [modified] Pin
sdc39526-Jan-09 4:34
sdc39526-Jan-09 4:34 
AnswerRe: WebBrowser Control - intercept requests Pin
sdc39524-Jan-11 0:51
sdc39524-Jan-11 0:51 
QuestionHow to: COM component provide access to ASP.NET (aspx) web page controls Pin
scody21-Jan-09 18:21
scody21-Jan-09 18:21 
QuestionActivex Messages don´t work at runtime Pin
fpmatta7721-Jan-09 3:49
fpmatta7721-Jan-09 3:49 
Hello I´m new in developes Controls with VC++ (VS2005)

When I use a activex, creating in desinger mode, the message OnLButtonUp (WM_LBUTTONUP) define in Warpper class return very well, but when I Create the activex in runtime mode, it don´t work.
What is my error ? I mistake some code ?

Parts of my code to better explain ..

// Test2001Dlg.h : header file
//
class CTest2001Dlg : public CDialog
{
//.....


public:

	CListView2 LV1;   // static designer mode
	CListView2 *pLV3; // Pointer to run time creation.


	afx_msg void OnBnClickedButton1();
};


// Test2001Dlg.cpp
//


void CTest2001Dlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
    DDX_Control(pDX, IDC_LISTVIEWCTRL1, LV1);

}


void CTest2001Dlg::OnBnClickedButton1()
{
	 CRect cPosition(300, 100, 400, 200);
     pLV3 = new CListView2();
   	 pLV3->Create(_T("{BDD1F04B-858B-11D1-B16A-00C0F0283628}"),NULL, WS_TABSTOP | WS_VISIBLE,cPosition,this,IDC_LISTVIEWCTRL_3,NULL);

/// I Need to do something else here ???
// IDC_LISTVIEWCTRL_3 is define in resource.h
// {BDD1F04B-858B-11D1-B16A-00C0F0283628} I Take in Test2001.rc from the IDC_LISTVIEWCTRL1

}



// CListView2.h  : Declaration of ActiveX Control wrapper class(es) created by Microsoft Visual C++

#pragma once

/////////////////////////////////////////////////////////////////////////////
// CListView2

class CListView2 : public CWnd
{

//...

	DECLARE_MESSAGE_MAP()
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
};



// CListView2.cpp  : Definition of ActiveX Control wrapper class(es) created by Microsoft Visual C++


#include "stdafx.h"
#include "CListView2.h"

/////////////////////////////////////////////////////////////////////////////
// CListView2

IMPLEMENT_DYNCREATE(CListView2, CWnd)

// CListView2 properties

// CListView2 operations
BEGIN_MESSAGE_MAP(CListView2, CWnd)
	ON_WM_LBUTTONUP()
END_MESSAGE_MAP()

void CListView2::OnLButtonUp(UINT nFlags, CPoint point)
{

	AfxMessageBox (_T("Clicked in CListView2::OnLButtonUp " ) , MB_OK|MB_ICONSTOP);
 
	CWnd::OnLButtonUp(nFlags, point);
}


thank´s
AnswerRe: Activex Messages don´t work at runtime Pin
guestcat29-Jan-09 5:45
guestcat29-Jan-09 5:45 
GeneralRe: Activex Messages don´t work at runtime Pin
fpmatta7730-Jan-09 1:46
fpmatta7730-Jan-09 1:46 
QuestionIStream::Write() returns success code S_OK but still doesn't write anything... Pin
ShyamR21-Jan-09 2:25
ShyamR21-Jan-09 2:25 
AnswerRe: IStream::Write() returns success code S_OK but still doesn't write anything... Pin
Jonathan Davies21-Jan-09 3:24
Jonathan Davies21-Jan-09 3:24 
QuestionCOM event handlers stub in C++ Pin
Panduranga Chary20-Jan-09 0:39
Panduranga Chary20-Jan-09 0:39 
AnswerRe: COM event handlers stub in C++ Pin
KarstenK20-Jan-09 0:51
mveKarstenK20-Jan-09 0:51 
QuestionHow To pass structure or complex data in IDispatch using invoke() method [modified] Pin
Thomas_Mathews19-Jan-09 19:32
Thomas_Mathews19-Jan-09 19:32 
AnswerRe: How To pass structure or complex data in IDispatch using invoke() method Pin
Jonathan Davies29-Jan-09 0:07
Jonathan Davies29-Jan-09 0:07 
AnswerRe: How To pass structure or complex data in IDispatch using invoke() method Pin
guestcat29-Jan-09 5:31
guestcat29-Jan-09 5:31 
QuestionAccess a .Net COM object hosted in a COM+ Server in .Net? Pin
huckfinn18-Jan-09 22:50
huckfinn18-Jan-09 22:50 
QuestionCustom Tool Setup Projects? Pin
GibbleCH15-Jan-09 9:06
GibbleCH15-Jan-09 9:06 
QuestionMFC ActiveX Control derived from Static Control Pin
Member 319657814-Jan-09 23:00
Member 319657814-Jan-09 23:00 
AnswerRe: MFC ActiveX Control derived from Static Control Pin
KarstenK14-Jan-09 23:10
mveKarstenK14-Jan-09 23:10 
GeneralRe: MFC ActiveX Control derived from Static Control Pin
Member 319657814-Jan-09 23:29
Member 319657814-Jan-09 23:29 
AnswerRe: MFC ActiveX Control derived from Static Control Pin
«_Superman_»15-Jan-09 18:38
professional«_Superman_»15-Jan-09 18:38 
QuestionPowerPoint Event system is behaving strangely. Pin
TClarke12-Jan-09 1:24
TClarke12-Jan-09 1:24 
QuestionHow to share the SSL conncetion made by myself in IE Pin
maoxintt9-Jan-09 15:30
maoxintt9-Jan-09 15:30 

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.