Click here to Skip to main content
15,929,653 members
Home / Discussions / COM
   

COM

 
GeneralRe: No response from regsvr32 Pin
captain12pack22-Sep-04 7:02
captain12pack22-Sep-04 7:02 
Generalvalid CLSID Pin
Monty222-Sep-04 0:26
Monty222-Sep-04 0:26 
GeneralRe: valid CLSID Pin
Lim Bio Liong15-Oct-04 3:34
Lim Bio Liong15-Oct-04 3:34 
GeneralWebControl: IE and JavaScript communication Pin
mebmer 12345678921-Sep-04 23:58
mebmer 12345678921-Sep-04 23:58 
GeneralAdding Toolbar to Outlook (Mail window) Pin
drong021-Sep-04 10:01
drong021-Sep-04 10:01 
GeneralRe: Adding Toolbar to Outlook (Mail window) Pin
Anthony_Yio28-Sep-04 20:18
Anthony_Yio28-Sep-04 20:18 
General"out-process" COM client Pin
MMarina21-Sep-04 7:11
MMarina21-Sep-04 7:11 
GeneralRe: "out-process" COM client Pin
Anonymous22-Sep-04 5:52
Anonymous22-Sep-04 5:52 
What sort of relationship do you need between your MFC app COM out-of-process server, and your client?

You can change the relationship by tweaking the automation code inside CYourApp::InitInstance() in your server app. eg.

BOOL CYourApp::InitInstance()<br />
{<br />
        ................<br />
	// Parse command line for standard shell commands, DDE, file open<br />
	CCommandLineInfo cmdInfo;<br />
	ParseCommandLine(cmdInfo);<br />
<br />
   	// Check to see if launched as OLE server<br />
	if (cmdInfo.m_bRunEmbedded || cmdInfo.m_bRunAutomated)<br />
	{<br />
		// Register all OLE server (factories) as running.  This enables the<br />
		//  OLE libraries to create objects from other applications.<br />
		COleTemplateServer::RegisterAll();<br />
		_Module.RegisterClassObjects(CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE);<br />
<br />
		// Application was run with /Embedding or /Automation.  Don't show the<br />
		//  main window in this case.<br />
		return TRUE;<br />
	}


You can tweak the relationship between the client and server using the second parameter to _Module.RegisterClassObjects(). REGCLS_MULTIPLEUSE means that the server can be called by more than one client. REGCLS_SINGLEUSE would imply a one-to-one relationship. REGCLS_MULTI_SEPARATE may be the one that you are looking for depending on the relationship.

You can read up on the REGCLS enumeration in the help files.
Hope this helps
Questionwhat interface to extend the grey Info box in WinXP Explorer? Pin
seriema20-Sep-04 23:44
seriema20-Sep-04 23:44 
AnswerRe: what interface to extend the grey Info box in WinXP Explorer? Pin
seriema21-Sep-04 12:41
seriema21-Sep-04 12:41 
GeneralActiveX control Initialization Pin
AssemblySoft20-Sep-04 9:10
AssemblySoft20-Sep-04 9:10 
GeneralRe: ActiveX control Initialization Pin
El'Cachubrey20-Sep-04 20:53
El'Cachubrey20-Sep-04 20:53 
GeneralRe: ActiveX control Initialization Pin
AssemblySoft20-Sep-04 23:58
AssemblySoft20-Sep-04 23:58 
GeneralRe: ActiveX control Initialization Pin
Saivert21-Sep-04 20:37
Saivert21-Sep-04 20:37 
GeneralRe: ActiveX control Initialization Pin
Saivert21-Sep-04 20:38
Saivert21-Sep-04 20:38 
GeneralOleLoadPicture failed please help Pin
El'Cachubrey20-Sep-04 4:19
El'Cachubrey20-Sep-04 4:19 
GeneralFunction parameter Pin
Sly66699918-Sep-04 6:35
Sly66699918-Sep-04 6:35 
GeneralRe: Function parameter Pin
darkbyte20-Sep-04 6:31
darkbyte20-Sep-04 6:31 
GeneralDownload Progress Callback (activeX) Pin
AssemblySoft17-Sep-04 3:46
AssemblySoft17-Sep-04 3:46 
GeneralATL Control SafeForScripting / Initialisation Pin
AssemblySoft16-Sep-04 23:01
AssemblySoft16-Sep-04 23:01 
GeneralRe: ATL Control SafeForScripting / Initialisation Pin
AssemblySoft17-Sep-04 3:43
AssemblySoft17-Sep-04 3:43 
GeneralMake a call to my ActiveX from my webpage. Pin
anderslundsgard16-Sep-04 21:06
anderslundsgard16-Sep-04 21:06 
GeneralRe: Make a call to my ActiveX from my webpage. Pin
darkbyte17-Sep-04 15:42
darkbyte17-Sep-04 15:42 
GeneralRe: Make a call to my ActiveX from my webpage. Pin
anderslundsgard20-Sep-04 3:24
anderslundsgard20-Sep-04 3:24 
GeneralRe: Make a call to my ActiveX from my webpage. Pin
darkbyte20-Sep-04 6:26
darkbyte20-Sep-04 6:26 

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.