473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to create a single instance of a child exe (COM Server Type exe)and use it throu

Hi,

I have an MFC application(.exe) in which i am creating an pointer object to CComQIptr<chemst::IChems>myinfo and after this i have using cocreateinstance i had created the object launching that object,so Where i am using that CComQIptr object i have been creating instance to that COM exe(child exe) and at the end of the function i am releasing that object (myinfo->release).i want to create single instance for it and i want to use them in different .cpp files and finally i want to kill the child exe.Eventhough i release the object it is still alive.(Visualising in Task manager whether the exe is still alive or not).

Thanks in Advance.
Nov 13 '13 #1
1 1336
weaknessforcats
9,208 Expert Mod 8TB
This is a Singleton design pattern issue.

Read this: http://bytes.com/topic/c/insights/65...erns-singleton
Nov 22 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Michel Claveau/Hamster | last post by:
Hi ! I seek how to define a COM-server in "mono-instance". Do you know if there are policies for that ? I sought much, but did not find anything. And i had difficult with english. Python is...
1
by: bubzhang | last post by:
The line below always fail, Why? myEXESvr.CmySimpleClass obj=new myEXESvr.CmySimpleClass(); //////////////////////////////////C#Source code ///////////////////////////////////////////////...
1
by: Simon Jefferies | last post by:
Hello, How can I create an instance using a System.Type object? Thanks Simon
2
by: mike w. | last post by:
I want to have a single instance of a base class that all the child classes inherits from. The base class is going load data from text files and this only needs to be done once. What I don't need...
9
by: MrSpock | last post by:
1. Create a new Windows Application project. 2. Open the project properties and check "Make single instance application". 3. Build. 4. Go to the release folder and run the application. 5. Try to...
7
by: Jeffery Tyree | last post by:
I am writing an application in C#.NET that is "AlwaysOnTop" and there should only be one instance of this program running at any given time. The "AlwaysOnTop" piece is working just fine but I...
1
by: dnzone | last post by:
I have a MDI Form with a menu and when i click on the menu it will open the MDI child but if i click it multiple time it will create multiple instance fo the child. What i want is no matter how...
2
by: Sharon | last post by:
I have a list of System.Type and I wish to create an instance for each of this types. string types = "System.Boolean", "System.Int32", "System.Single", "System.Double", "System.String",...
4
by: sirjohnofthewest | last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man. Hi guys, I frequently visit this site to get answers to my...
7
by: =?Utf-8?B?TWF0dA==?= | last post by:
Hi I have an app that runs without a main form, just a notification icon, when the user clicks the icon the form is shown, and when the form is minimized it's hidden. This all works great,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.