Click here to Skip to main content
15,913,854 members
Home / Discussions / COM
   

COM

 
AnswerRe: how to maintain relationship between parent and child activeX control Pin
Jitendra gangwar27-Apr-04 20:20
Jitendra gangwar27-Apr-04 20:20 
GeneralForward declaration error of ICallFactory Pin
shahzi25-Apr-04 20:34
shahzi25-Apr-04 20:34 
GeneralRe: Forward declaration error of ICallFactory Pin
Mike Dimmick26-Apr-04 23:30
Mike Dimmick26-Apr-04 23:30 
GeneralRe: Forward declaration error of ICallFactory Pin
shahzi29-Apr-04 20:19
shahzi29-Apr-04 20:19 
Generalnon-blocking Method Calling from COM Client Pin
shahzi23-Apr-04 22:27
shahzi23-Apr-04 22:27 
GeneralPass by Value or by Reference Pin
normanordas22-Apr-04 21:15
normanordas22-Apr-04 21:15 
GeneralRe: Pass by Value or by Reference Pin
Mike Dimmick23-Apr-04 9:24
Mike Dimmick23-Apr-04 9:24 
GeneralUsing ISyncMgrRegister Pin
jparsons22-Apr-04 19:57
jparsons22-Apr-04 19:57 
I'm trying to write my own customer SyncMgr component. I'm having some trouble loading up the ISyncMgrRegister object. I'm a little new to COM so I'm probably missing osmething obvious here. This is MC++ code. Can someone point me in the correct direction.

<br />
#include "stdafx.h"<br />
#include "mobsync.h"<br />
#using <mscorlib.dll><br />
<br />
using namespace System;<br />
<br />
int _tmain()<br />
{<br />
    HRESULT hr = CoInitialize(NULL);<br />
<br />
    if ( FAILED(hr) )<br />
    {<br />
      Console::WriteLine(S"Cannot Initilaize com");<br />
      goto error;<br />
    }<br />
<br />
    ISyncMgrRegister *reg = NULL;<br />
<br />
    hr = CoCreateInstance(<br />
      CLSID_SyncMgr,<br />
      NULL,<br />
      CLSCTX_LOCAL_SERVER,<br />
      IID_ISyncMgrRegister,<br />
      reinterpret_cast<void**>(reg));<br />
    if ( FAILED(hr) )<br />
    {<br />
      Console::WriteLine(S"Could not create an instance of the Sync Mgr");<br />
      goto error;<br />
    }<br />
<br />
    reg->Release();<br />
<br />
    Console::WriteLine(S"Press Enter to Exit");<br />
    Console::ReadLine();<br />
	return 0;<br />
<br />
error:<br />
<br />
  Console::WriteLine(S"Press enter to exit");<br />
  Console::ReadLine();<br />
  return 1;<br />
}


Jared
jparsons@jparsons.org
www.prism.gatech.edu/~gte477n
GeneralRe: Using ISyncMgrRegister Pin
Mike Dimmick23-Apr-04 9:26
Mike Dimmick23-Apr-04 9:26 
GeneralRe: Using ISyncMgrRegister Pin
jparsons23-Apr-04 11:58
jparsons23-Apr-04 11:58 
GeneralRe: Using ISyncMgrRegister Pin
MichaelPine17-Apr-05 22:07
MichaelPine17-Apr-05 22:07 
Generalerror in loading .dll Pin
Peter GW22-Apr-04 5:17
Peter GW22-Apr-04 5:17 
GeneralCOM+ Transaction err0r Pin
versatile_me21-Apr-04 18:03
versatile_me21-Apr-04 18:03 
GeneralLoad COM from a remote location Pin
Fabio Panzavolta21-Apr-04 3:47
Fabio Panzavolta21-Apr-04 3:47 
GeneralCreateDispatch AccessDenied Pin
shiraztk21-Apr-04 0:49
shiraztk21-Apr-04 0:49 
GeneralCOM tutorials Pin
Poorniselva21-Apr-04 0:41
Poorniselva21-Apr-04 0:41 
Generalexposing a class library as a COM object Pin
User 96257820-Apr-04 9:41
User 96257820-Apr-04 9:41 
GeneralCatching COM Events without using ATL Pin
jerry0davis20-Apr-04 5:09
jerry0davis20-Apr-04 5:09 
GeneralRe: Catching COM Events without using ATL Pin
Mike Dimmick20-Apr-04 5:54
Mike Dimmick20-Apr-04 5:54 
GeneralError MIDL1001 : cannot open input file oaidl.idl Pin
M Ashok Kumar20-Apr-04 2:26
M Ashok Kumar20-Apr-04 2:26 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
Steve S20-Apr-04 2:31
Steve S20-Apr-04 2:31 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
M Ashok Kumar20-Apr-04 2:38
M Ashok Kumar20-Apr-04 2:38 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
Anonymous20-Apr-04 4:28
Anonymous20-Apr-04 4:28 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
Mike Dimmick20-Apr-04 6:32
Mike Dimmick20-Apr-04 6:32 
GeneralRe: Error MIDL1001 : cannot open input file oaidl.idl Pin
M Ashok Kumar20-Apr-04 20:19
M Ashok Kumar20-Apr-04 20:19 

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.