Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6847015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:41:35+00:00 2026-05-27T00:41:35+00:00

So I have a appA in C++ and it creates a namedpipe to receive

  • 0

So I have a appA in C++ and it creates a namedpipe to receive communication. the name of the namedpipe is “\\.\pipe\apppipe” I also had another appB also written in C++ which connected to appA using the same named pipe. Easy.

Now moving up in the world :), appC comes along built with C# on the .NEt Framework 4.X and intends to connect to the same named pipe appA creates (appB is to be decomissioned). However, I find that the NamedPipeClientStream object doesn’t seem to be able to connect with appA’s namedpipe. I thought a namedpipe was a namedpipe and I didn’t have to care how it’s connected to.

This is appC’s way of trying to connect that’s failing…

   NamedPipeClientStream pipeClient = new NamedPipeClientStream("\\\\.\\pipe\\apppipe");
   pipeClient.Connect(5000);//5 second timeout

Does it have to do with the name? How should I represent this now on the C# side to connect to the same pipe?

thanks

EDIT:
appA’s pipe creation code is just

LPTSTR lpszPipename = TEXT("\\\\.\\pipe\\apppipe");

pipeHandle = CreateNamedPipe(
                                    lpszPipename,
                                    PIPE_ACCESS_DUPLEX,
                                    PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT,
                                    PIPE_UNLIMITED_INSTANCES,
                                    BUFSIZE,
                                    BUFSIZE,
                                    0,
                                    NULL);

    if(pipeHandle == INVALID_HANDLE_VALUE)
    {
         acutPrintf(L"\n Problem creating pipe");
         return;
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:41:36+00:00Added an answer on May 27, 2026 at 12:41 am
    NamedPipeClientStream pipeClient = new NamedPipeClientStream(".", "apppipe");
    pipeClient.Connect(5000);//5 second timeout
    

    is your friend!
    you may also need to send in/out options (but probably not), more details check MSDN: How to: Use Named Pipes to Communicate Between Processes over a Network

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two applications, both of which I have written. AppA was written in
I have a django project which has two apps, one is AppA and AppB
I have 2 separate applications appA and appB. if both app are not present
I have two projects, appA and appB, that each depend on a third project,
I have a project with two targets, let's say appA and appB . Both
I have two different WinForms applications, AppA & AppB. Both are running .NET 2.0.
I have two applications: AppA in localhost:1834 AppB in localhost:3597 An html page of
for example: I have app A, which references library A and library B. in
I have console app A that references another console app B. B app has
I have in my app a chat component which has a JTextArea on it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.