|
Hi,
i am new to use the PIPE and client server application.
I have been able to communicate the IPC for processes that are on the same computer using named pipe.
But i am clueless, how to obtain it for the communication between two different computer OR client - server application.
If any example or link is available, please provide.
Thanks
ND
|
|
|
|
|
Is this link helpful.
http://www.codeguru.com/cpp/i-n/network/namedpipes/article.php/c2475
|
|
|
|
|
The only difference is the pipe name.
The client needs to connect to a pipe name with the
server name included:
\\servername\pipe\pipename
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks , It works
But now i am finding the new issue.
I am able to connect only one client to the server.because pipe is opened by one client so another client is not able to connect it
I am connect the multiple client withe same server. how to achive it?
Thanks again
Navdeep
|
|
|
|
|
|
Hi All,
Iam faced with this problem.
1. I have an application that should be capable of handling two usb mice. Let me elaborate.Two usb mice (or mice
like devices) will be connected to my system (windows xp) obviously through USB ports. I should be able to assign
or say that the mouse connected to this (one fixed) physical USB port is my left mouse and the mouse connected to
another (fixed one) USB port is my right mouse. Next, I should be able to distinguish between the events generated
by both the mice.
2. I have tried Raw Input Api whereby Iam able to distinguish between mice inputs. But Iam not able to fix my mice as
left and right. I tried to distinguish the mice using usb port ids. But whenever I plug out and reinsert my mouse,
the port id keeps changing (is this observation correct?). Also, for this requirement, I should be able to say
before hand what is the port number of my left mouse and my right mouse.
Any help on this would be highly appreciated.
Kamalesh Narayan Nair
|
|
|
|
|
You could distinguish the two mice from each other by their serial numbers, which should be unique, and persistent, so that unplugging devices won't be a problem. I couldn't find anything in my (limited) google searches but you should try googling something along the lines of "get usb device serial number"
good luck
|
|
|
|
|
Hi,
I have exported dll from dll. I load dll using loadlibrary api. Using GetProceAddress I can get exported function pointer. But how can I use exported dll. __declspec(dllimport) only works when I link through .lib but in LoadLibrary?
Thanks
|
|
|
|
|
manish rastogi wrote: Using GetProceAddress I can get exported function pointer. But how can I use exported dll.
This way [^].
manish rastogi wrote: __declspec(dllimport) only works when I link through .lib but in LoadLibrary?
You don't need _declspec(dllimport) when you use explicit DLL linking (i.e. LoadLibrary ). Actually, when you use explicit DLL linking, you don't need the library header file at all.
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
[My articles]
|
|
|
|
|
Sir,
Thanks for your quick response. I want to import data. Suppose I exported data from dll using this way
__declspec(dllexport) long g_lValue. How can I access it using explicit dll linking.
Thanks
|
|
|
|
|
Why don't you (write and) export the accessors (i.e. get /set functions) of your integer variable?
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
[My articles]
|
|
|
|
|
Sir,
I can do this by writing get/set functions. I want to know this only It is possible or not.
|
|
|
|
|
manish rastogi wrote: I want to know this only It is possible or not.
Yes, it is possible.
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
[My articles]
|
|
|
|
|
|
For instance:
(DLL header)
#ifdef __cplusplus
extern "C"
{
#endif
extern DLLTEST_API int iExported;
#ifdef __cplusplus
};
#endif
(DLL source)
#ifdef __cplusplus
extern "C"
{
#endif
DLLTEST_API int iExported;
#ifdef __cplusplus
};
#endif
(DLL client)
int * pInt =(int *) GetProcAddress(hLib, "iExported");
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
[My articles]
|
|
|
|
|
|
You're welcome.
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
[My articles]
|
|
|
|
|
Hi,
I have two dialog boxes opened one on top of another. Now what i want is that i should not be able to do anything on the dialog box which is below until and unless the topmost dialog box button is not clicked or closed.
Please Help Me.
Thanks In Advance.
|
|
|
|
|
I think your second dialog box is Model dialog box, make it modeless!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
I understood exactly the opposite...
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
[My articles]
|
|
|
|
|
yes you are right, he have to make second dialog box model, instead of modeless
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
Can you tell me how to make it modal . I am using MFC.
Do i need to set any property through which it will become modal
|
|
|
|
|
You have to call DoModal
|
|
|
|
|
yes i did it but now what is happening is that uppermost dialog box is visisble but bottom dialog can still be minimized.
My motive is that i should not be able to fire any event on the bottom dialog until and unless an event is fired on the top dialog box.
|
|
|
|
|
call DoModal of second dialog from first dialog!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|