|
Hi friends,
I am in need to perform InterProcessCommunication. I have gone thru the PIPES and SOCKETS to do the same but unable to decide which one is the best and efficient.
Could anybody help me out in understanding which one is more efficient and why?
Thanks in advance
poojaaa
|
|
|
|
|
There's too many "depends" here for me to work with.
Are the processes on the same PC? In the same building? Is one end an alien spaceship, and you're trying to plant a virus?
Are both the same OS? If yes, might that answer change?
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Iain Clarke wrote: Is one end an alien spaceship, and you're trying to plant a virus?
Please stop drinking alchool now.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
9am is early even by my standards. Now, if I reply after lunch...
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
hai...,
Atlast, what is the solution for the question...?
Please mention all the cases, where we need to use "PIPES" and where we should use "SOCKETS"....
Born to win...!
modified on Tuesday, April 22, 2008 6:22 AM
|
|
|
|
|
Manivannan@congruent wrote: Please mention all the cases
No, that's too much hard work for me, and I'm not getting paid for this.
If you have a scenario in mind, I may be able to help. It also depends on your skills and previous knowledge.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Manivannan@congruent wrote: Please mention all the cases, where we need to use "PIPES" and where we should use "SOCKETS"....
You have to wait a bit: after lunch he will.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Pipes provide an easier programming interface than sockets.
Depending on the situation, a pipe may use sockets as its underlying transport mechanism,
so in that case, a pipe may be a little less efficient.
Maybe use the one that has the features you need for your application.
Or try both and see which is more efficient for you. I would guess the performance
difference is minimal.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Since COM dll cannot be used without registering, so i want to convert COM dll to Normal dll so that i can use dll without registering
|
|
|
|
|
Member 4354119 wrote: Since COM dll cannot be used without registering
what's the problem you face in registering the DLL, or why you want it to be used without registering.
Member 4354119 wrote: so i want to convert COM dll to Normal dll
normally COM dll exports some set of functions that are used by COM library to create the COM instances, then with normal dll what you are expecting to do?
|
|
|
|
|
Go on then.
Oh, you want me to pretend you had a question?
COM dll's *are* normal DLLs. They have two functions exported by definition: One to register interfaces, and one to get an object, given a GUID.
There's nothing stopping you writing another exported function in the same way, and call it:
HRESULT GiveMeAnObjectUsingThisPrivateMethod (IMyObject **ppObject);
And then treat the ppObject in the same way, Release, AddRef, etc, and the COM infrastructure needs to know nothing about you. You can also keep the code for the object you've already written this way.
But only someone who knows about GiveMeAnObjectUsingThisPrivateMethod will be able to use it...
Iain
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
hi,
How to install .ttf file through program in windows.I have an application that uses different font.so, i need that fonts to be installed for appearing on my application..
How can i do that ??? any other idea to do this ?????
Thanku
verma
|
|
|
|
|
Click Here ->[^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Thanks....
it works great!!!!!!!
But some fonts are unable to uninstall.... why?
Regards
verma
|
|
|
|
|
Please Debug it properly may be the extension of file name is different.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Hi every one
Can Any one guide me how to proceed with developing a ActiveX component in VC++?
Regards,
S.Lakshmigeetha.
lgatcodeproject
|
|
|
|
|
Please follow the step that is given in this article Click here->[^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Hello,
Thanks for the Link. I have question regarding the article. I followed the steps dictated in the link. In step 3 (Adding a property to the Control)the article says the prototypes of get & set functions are created int polyCtl.h and empty functions are created in polyCtl.cpp.
But when I tried the same, say added a propery named Sides, the get and set functions did not get created in the .h and .cpp file. But as they said the propget,propput god added in the polygon.idl.
Can you say that this behaviour is common?
Regards,
LG
lgatcodeproject
|
|
|
|
|
kindly excuse the typo errors
".... got god"
lgatcodeproject
|
|
|
|
|
Did you recompile the IDL?
This should generate the functions for you
codito ergo sum
|
|
|
|
|
Hello,
I Rebuild the application after adding the property. This build would compile the idl for me is it?
Regards,
LG
lgatcodeproject
|
|
|
|
|
Normally it should,
nevertheless could you try to compile the .IDL yourself?
codito ergo sum
|
|
|
|
|
Hi,
I compiled the .IDL but it did't happen so I added the function declaration on the .h file and the definitions in the .cpp file. And proceeded further, and I got the desired output.
Thanks for the link.
Regards,
LG.
lgatcodeproject
|
|
|
|
|
|
Hi!
Thanks for the link. It was quite informative.
Regards,
LG
lgatcodeproject
|
|
|
|