Click here to Skip to main content
16,005,206 members
Home / Discussions / COM
   

COM

 
GeneralRe: Help with ITypeInfo Pin
Aaron Schaefer13-Aug-01 11:40
Aaron Schaefer13-Aug-01 11:40 
GeneralWM_CREATE, CWindow and HWND Pin
13-Aug-01 7:26
suss13-Aug-01 7:26 
GeneralRe: WM_CREATE, CWindow and HWND Pin
16-Aug-01 5:52
suss16-Aug-01 5:52 
GeneralShell Extentions / EXPLORER Extentions Pin
12-Aug-01 19:54
suss12-Aug-01 19:54 
GeneralVARIANT data type?! Pin
11-Aug-01 21:28
suss11-Aug-01 21:28 
GeneralRe: VARIANT data type?! Pin
Rashid Thadha12-Aug-01 23:08
Rashid Thadha12-Aug-01 23:08 
GeneralRe: VARIANT data type?! Pin
20-Aug-01 1:06
suss20-Aug-01 1:06 
GeneralHELP!!! Advise() failes when called remotely Pin
10-Aug-01 5:45
suss10-Aug-01 5:45 
This piece of code works when i instantiate an object as 'inproc':

MULTI_QI qi[2] = {0};
qi[0].pIID = &IID_IAgentCore;
qi[1].pIID = &IID_IConnectionPointContainer;
hr = CoCreateInstanceEx(
CLSID_AgentCore, NULL,
server_type, pServerInfo,
2, qi);

IConnectionPointContainerPtr pCPC_AgentCore;
...
pCPC_AgentCore = (IConnectionPointContainer*)qi[1].pItf;
...
hr = pCPC_AgentCore->FindConnectionPoint(IID__IAgentCoreEventsFlat, &m_pCoreEvents);
if ( SUCCEEDED( hr ) )
{
hr = m_pCoreEvents->Advise(GetUnknown(), &m_CoreCookie);
if ( FAILED( hr ) )
throw hr;
}
else
throw hr;

but when the object AgentCore is on the remote computer Advise() failes with 'Access denied' error. Note that object is created and other method calls were successful. So i dont think it is a security problem...
IAgentCoreEventsFlat is an ordinary interface inherited from IUnknown. I'm launching a DLL with the help of DLLHOST.EXE on remote machine.
Please help!

Thanks.






GeneralRe: HELP!!! Advise() failes when called remotely Pin
Mike Player10-Aug-01 6:14
Mike Player10-Aug-01 6:14 
GeneralRe: HELP!!! Advise() failes when called remotely Pin
Rashid Thadha10-Aug-01 6:34
Rashid Thadha10-Aug-01 6:34 
GeneralConverting types Pin
8-Aug-01 20:11
suss8-Aug-01 20:11 
GeneralEvents in ASP Pin
Member 169778-Aug-01 19:47
Member 169778-Aug-01 19:47 
GeneralPerformance: Smart pointers vs CComPtr, IDispatch vs IUnknown Pin
Joe Hastings8-Aug-01 11:43
Joe Hastings8-Aug-01 11:43 
GeneralCOM Pin
8-Aug-01 0:14
suss8-Aug-01 0:14 
GeneralCalling the 2nd + method Pin
Brad Bruce7-Aug-01 8:39
Brad Bruce7-Aug-01 8:39 
GeneralATL Dialog based control wizard Pin
7-Aug-01 7:24
suss7-Aug-01 7:24 
GeneralRe: ATL Dialog based control wizard Pin
Aaron Schaefer7-Aug-01 8:41
Aaron Schaefer7-Aug-01 8:41 
QuestionMFC ASSERT called by IE, need to reboot? Pin
Joe Hastings7-Aug-01 3:25
Joe Hastings7-Aug-01 3:25 
Generalput <map> in dispparams Pin
parag7-Aug-01 3:04
parag7-Aug-01 3:04 
GeneralUsing ActiveX VB dll in VC Pin
6-Aug-01 20:06
suss6-Aug-01 20:06 
GeneralAutomating Visual C++ Project Creation Pin
Steve Thresher6-Aug-01 0:19
Steve Thresher6-Aug-01 0:19 
GeneralExtension of the IE5 context-menu Pin
Yks5-Aug-01 18:59
Yks5-Aug-01 18:59 
GeneralRe: Extension of the IE5 context-menu Pin
Todd Smith5-Aug-01 19:32
Todd Smith5-Aug-01 19:32 
GeneralRe: Extension of the IE5 context-menu Pin
Not Active6-Aug-01 3:03
mentorNot Active6-Aug-01 3:03 
QuestionGet the MAC-address from a host computer? Pin
Heidyon3-Aug-01 0:00
Heidyon3-Aug-01 0:00 

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.