HighTechTalks DotNet Forums  

How do do CoRegisterClassObject(... REGCLS_SINGLEUSE) in .net

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss How do do CoRegisterClassObject(... REGCLS_SINGLEUSE) in .net in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Benny
 
Posts: n/a

Default How do do CoRegisterClassObject(... REGCLS_SINGLEUSE) in .net - 04-25-2007 , 06:30 PM






I have a class written in an EXE. How do I express the same behavior as
CoRegisterClassObject(... REGCLS_SINGLEUSE) in .net for that class.

For example, for every instance created by the server object, I would like
it launch a new instance of the EXE.

Thanks.

Reply With Quote
  #2  
Old   
Walter Wang [MSFT]
 
Posts: n/a

Default RE: How do do CoRegisterClassObject(... REGCLS_SINGLEUSE) in .net - 04-26-2007 , 05:24 AM






Hi,

Please refer to RegistrationServices.RegisterTypeForComClients:

#RegistrationServices.RegisterTypeForComClients Method (Type,
RegistrationClassContext, RegistrationConnectionType)
(System.Runtime.InteropServices)
http://msdn2.microsoft.com/en-gb/library/ms146702.aspx

#RegistrationConnectionType.SingleUse
http://msdn2.microsoft.com/en-gb/lib...pservices.regi
strationconnectiontype.multiseparate.aspx

Hope this helps.


Sincerely,
Walter Wang (wawang (AT) online (DOT) microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
  #3  
Old   
Benny
 
Posts: n/a

Default RE: How do do CoRegisterClassObject(... REGCLS_SINGLEUSE) in .net - 04-30-2007 , 03:00 PM



Hi Walter, thank you for your answer. It was helpful.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.