-
August 22nd, 2013, 07:32 AM
#1
how to CallNamedPipe
Can any one tell me how can i make use of CallNamedPipe() and what the instances i have to create before using this funtion ...
Do i need to intitiate anything in the other to connect through this function??
I am facing this error when i have given the below path in local machine
path i am using: \\\\inawap03\\pipe\\OpenDwg
Error:
\\\\inawap03\\pipe\\OpenDwg
The Networkpath was not found.
-
August 22nd, 2013, 08:19 AM
#2
Re: how to CallNamedPipe
You could try to use this class of PJ Naughter
Victor Nijegorodov
-
August 22nd, 2013, 09:42 AM
#3
Re: how to CallNamedPipe
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
August 23rd, 2013, 02:23 AM
#4
Re: how to CallNamedPipe
Originally Posted by nini18110
Error:
\\\\inawap03\\pipe\\OpenDwg
The Networkpath was not found.
I think the problem is on client side. When the pipe is not created on server side the error is different:
Code:
C:\Temp\named_pipe_in_service>pc.exe 192.168.55.236
Could not open pipe (2)
C:\Temp\named_pipe_in_service>net helpmsg 2
The system cannot find the file specified.
In your case this is a network path not found, which most probably means the client side is not able to resolve host name to IP address.
Code:
C:\Temp\named_pipe_in_service>pc.exe ivartanov-bla-bla
Could not open pipe (53)
C:\Temp\named_pipe_in_service>net helpmsg 53
The network path was not found.
Best regards,
Igor
-
August 23rd, 2013, 02:35 AM
#5
Re: how to CallNamedPipe
The named pipe sample to play with: named_pipe_in_service_(modified).zip
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|