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

  • SEARCH
  • Home
  • 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 1082739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:20:31+00:00 2026-05-16T22:20:31+00:00

Can I have a VB6 app call a named pipe connection to a service

  • 0

Can I have a VB6 app call a named pipe connection to a service written in C# with a WCF endpoint?

The VB6 project that makes use of named pipes to talk to a service written in C++. I would like to convert the C++ service to C# (.NET 4.0 preferably).

The VB6 project uses a Win32 call to CallNamedPipes to send a message to the server. The payload of the message is a string that consists of the following structure.

 [command][data length][data if approprate to the message]

I am not able to convert the VB6 side of the application at this time but I am wondering if I can rely on the CallNamedPipe function to send a message to a new WCF service and if they will play well together. I would see the contract side of the WCF service basically being one method that accepts a string that I will parse.

Also, since CallNamedPipes can receive return data in the outputBuffer parameter, would WCF be able to accomodate this? Would the contract be something like this…

string DoSomething(string command)

Thanks for your help!

Brian

  • 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-16T22:20:32+00:00Added an answer on May 16, 2026 at 10:20 pm

    WCF is very good, but really shines when using WCF on both sides of the communication channel. Trying to hook up legacy code to a WCF service is tricky at best.

    It will likely be easier to make your C# service use NamedPipeServerStream directly. This will give you complete control over how the connection and transfer is handled. That being said, there is nothing preventing you from doing both (implementing a custom NamedPipeServerStream channel, as well as exposing one or more WCF endpoints, from within the same program). This would provide a way to move forward if you ever want to upgrade the client, as well.

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

Sidebar

Related Questions

I have a .NET 3.5 winforms app that calls a method in a VB6
I have a VB6 application that uses a COM DLL. The DLL is written
Routines can have parameters, that's no news. You can define as many parameters as
I have a program that can have a lot of parameters (we have over
I have a Windows Forms (.NET) application that can have multiple documents open simultaneously.
first, I can't stand Crystal! Okay, that's off my chest... Now, we have an
I have been attemptng to create a DLL with C/C++ that can be accessed
I have a VB6 application that still references some old VB5 libraries (dll, vbr,
I have a C# application that uses the SerialPort object to establish a connection
OK, so I have a C++ project that compiles to a DLL file. I

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.