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 865871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:42:29+00:00 2026-05-15T09:42:29+00:00

I have a exe in c++ where i have created CreateIPCQueue function and i

  • 0

I have a exe in c++ where i have created CreateIPCQueue function and i am creating another exe in c# where i want to use this method.then how i should proceed for this.pls help me

  • 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-15T09:42:30+00:00Added an answer on May 15, 2026 at 9:42 am

    Powershell (.NET) and Piping

    You might be able to make use of Windows Powershell to pipe between classic program output and cmdlets built in .NET. Because it pipes objects instead of raw text between programs, I’m unsure it’s compatibility with piping classic strings, although you might find a unique solution here so I’ll post it now and update later if a more specific variation is found…

    Update:

    In Powershell, I tested and found that classic text output can be piped into .NET cmdlets. For example, I took the standard text output from the C# compiler help screen and piped it into the ForEach-Object construct – in this case each object is a .NET String because the classic output is represented textually.

    # In Powerhsell.exe #
    C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe /? | ForEach-Object -Process {"LINE: " + $_}
    

    It produced the following output that proves the concept – indeed it prepended the phrase "LINE: " to each line of text.

    LINE:                         - ERRORS AND WARNINGS -
    LINE: /warnaserror[+|-]             Report all warnings as errors
    LINE: /warnaserror[+|-]:<warn list> Report specific warnings as errors
    LINE: /warn:<n>                     Set warning level (0-4) (Short form: /w)
    LINE: /nowarn:<warn list>           Disable specific warning messages
    LINE:
    LINE:                         - LANGUAGE -
    LINE: /checked[+|-]                 Generate overflow checks
    

    Any other .exe that produces text output can be used in this example.

    Next Steps

    Based on that proof of concept showing classic text and .NET objects interoperating through Powershell piping, the next step might be expose your .NET program as a cmdlet (to substitute in place of the For-Each construct in the example). I looked for a useful article about exposing your existing .NET code as a cmdlet and found: Creating a Windows PowerShell CmdLet using the Visual Studio Windows PowerShell Templates

    Basically you can expose a piece of your existing .NET logic as a cmdlet and then rely on the natural piping ability inherent in Powershell. The bonus is you’ll be compatible with Powershell and other programs can reap the benefits of using your cmdlet.

    Update 2
    Additional Resources

    • Extend Windows PowerShell With Custom Commands
    • Cmdlet Development Guidelines
    • Writing a Windows PowerShell Cmdlet
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created console application on VS 2008, the console app use another exe
i have published my project and exe file has been created.... now i want
I have this installation file setup.exe that was created with installShield wizard. as part
I have a XSD I generated using xsd.exe and then created a class off
I have created an exe using exe4j (chose to create a service ) I
I have created an exe file as a part of pre build event. I
I have a Visual Studio 2010 C# project which creates an .exe and this
I have EXE and 2 DLL used by this EXE. All binary were compiled
I have an EXE that I want to distribute, but I don't want to
Here's one for a firewall expert: If I have an ActiveX EXE (created in

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.