CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2013
    Posts
    9

    Post 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.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: how to CallNamedPipe

    You could try to use this class of PJ Naughter
    Victor Nijegorodov

  3. #3
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    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)

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: how to CallNamedPipe

    Quote Originally Posted by nini18110 View Post
    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

  5. #5
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    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
  •  





Click Here to Expand Forum to Full Width

Featured