Click here to Skip to main content
15,914,016 members
Home / Discussions / COM
   

COM

 
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 
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 
Hi,

I am a newbie to the COM and Microsoft technologies. i have a COM dll to be used in my C++ program to connect to remote server and handle events recieved from the remote server.

COM dll contains the single interface and following functions are available

setIpAddr()
setPort()
Connect()
startRequest()

Also available events are

onConnect() :- occurs when the server responds to to Connect() call above
onRecieveData() :- occurs when the call startRequest() is made and this is continuous event happens when ever the remote server sends the message.



I am able to create the COM object and call the methods. my question is, how take care of the event handlers.(creating stubs for the events above).

Here is the code snippet

#include "stdafx.h"
#using <mscorlib.dll>
#import "XYZCom.dll"

#include <string>
using namespace System;



int main(){
XYZCom::ITXYZCom *interfaceXYZ = NULL;
HRESULT hr;
CoInitialize(NULL);

hr = CoCreateInstance ( __uuidof(XYZCom::ITXYZCom), NULL, CLSCTX_INPROC_SERVER, __uuidof(XYZCom::ITXYZCom), ( void** ) &interfaceXYZ );

if( ! SUCCEEDED( hr ) )
{
interfaceSinal = NULL;
printf( "Unable to create instance of the object.\n" );
// goto _EndMain;
}



interfaceXYZ->setIpAddr("127.0.0.1")
interfaceXYZ->setPort("15000")
interfaceXYZ->Connect();



Google talks about ATL i am not sure about it. How to implement the event handlers for the event interfaces defined in the COM DLL
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 
AnswerRe: How to share the SSL conncetion made by myself in IE Pin
Garth J Lancaster9-Jan-09 16:59
professionalGarth J Lancaster9-Jan-09 16:59 
GeneralRe: How to share the SSL conncetion made by myself in IE Pin
maoxintt9-Jan-09 18:38
maoxintt9-Jan-09 18:38 
GeneralRe: How to share the SSL conncetion made by myself in IE Pin
Garth J Lancaster9-Jan-09 20:50
professionalGarth J Lancaster9-Jan-09 20:50 
GeneralRe: How to share the SSL conncetion made by myself in IE Pin
maoxintt9-Jan-09 22:27
maoxintt9-Jan-09 22:27 
QuestionExcel automation highlight issue Pin
TClarke8-Jan-09 23:55
TClarke8-Jan-09 23:55 

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.