473,795 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Writing to an existing Named Pipe

I am trying to use .NET to "tap into" a named pipe created by a non .NET 3rd
party application. Specifically, the application is a table loading utility.
It opens a named pipe and waits for input.
Does anybody know how I can write to the named pipe from a .NET program. I
have tried using the traditional file access methods, and it appears that
pipes have a problem with file streams. I have tried API calls, but since I
do not have the handle of the pipe, I am having a hard time communicating.

Has anyone accomplished this? HELP!

Thanks!
Nov 17 '05 #1
3 2637
Hi,

IIRC .NET do not have support for named piped, you will have to P/Invoke
the API, I have a link in the office and will send it to you tomorrow(
monday ) morning. you could do a search in google though.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"EricR" <Er***@discussi ons.microsoft.c om> wrote in message
news:A3******** *************** ***********@mic rosoft.com...
I am trying to use .NET to "tap into" a named pipe created by a non .NET
3rd
party application. Specifically, the application is a table loading
utility.
It opens a named pipe and waits for input.
Does anybody know how I can write to the named pipe from a .NET program. I
have tried using the traditional file access methods, and it appears that
pipes have a problem with file streams. I have tried API calls, but since
I
do not have the handle of the pipe, I am having a hard time communicating.

Has anyone accomplished this? HELP!

Thanks!

Nov 17 '05 #2
Hi,

http://www.gotdotnet.com/community/u...=named%20pipes

Is the link, as I said you should find more details in google

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
in message news:uQ******** ******@TK2MSFTN GP09.phx.gbl...
Hi,

IIRC .NET do not have support for named piped, you will have to P/Invoke
the API, I have a link in the office and will send it to you tomorrow(
monday ) morning. you could do a search in google though.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"EricR" <Er***@discussi ons.microsoft.c om> wrote in message
news:A3******** *************** ***********@mic rosoft.com...
I am trying to use .NET to "tap into" a named pipe created by a non .NET
3rd
party application. Specifically, the application is a table loading
utility.
It opens a named pipe and waits for input.
Does anybody know how I can write to the named pipe from a .NET program.
I
have tried using the traditional file access methods, and it appears that
pipes have a problem with file streams. I have tried API calls, but since
I
do not have the handle of the pipe, I am having a hard time
communicating.

Has anyone accomplished this? HELP!

Thanks!


Nov 17 '05 #3
http://www.codeproject.com/csharp/Do...PipesPart1.asp

"EricR" <Er***@discussi ons.microsoft.c om> wrote in message
news:A3******** *************** ***********@mic rosoft.com...
I am trying to use .NET to "tap into" a named pipe created by a non .NET
3rd
party application. Specifically, the application is a table loading
utility.
It opens a named pipe and waits for input.
Does anybody know how I can write to the named pipe from a .NET program. I
have tried using the traditional file access methods, and it appears that
pipes have a problem with file streams. I have tried API calls, but since
I
do not have the handle of the pipe, I am having a hard time communicating.

Has anyone accomplished this? HELP!

Thanks!


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
10757
by: Srijit Kumar Bhadra | last post by:
Hello, Here is an example of Multithreaded Pipe Server and Client using the excellent ctypes library (Windows). Reference - MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/multithreaded_pipe_server.asp and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/named_pipe_client.asp Best Regards,
2
2716
by: Rudolf Bargholz | last post by:
Hi, DB2 7.1 FP11 Windows 2000 Earlier this evening, after dropping and recreating a trigger, DB2 locked up. I am not entirely sure that the cause of the problem was the replacing of the trigger, but all of a sudden no users were able to connect to our customers database. After running db2dart I found numerous corrupted indexes which I removed using "db2dart MYDB /IM". Finally I was able to get a
0
1553
by: Spiros | last post by:
Hi everybody I am creating an application using VC++ that runs on a terminal server with 30 end users. The end users will use thin clients as front end machines. The application consists of a main menu executeble that opens other executables depending on the user selection. In order to establish that communication I use named pipes. Actually I use 1 named pipe as the main tube for data transfer. What happens is that sometimes the session of...
2
5065
by: FB's .NET Dev PC | last post by:
I am writing two services in VB.NET, one of which needs to send text strings to the other. After reading, I decided (perhaps incorrectly) that named pipes would be the best interprocess communication method for this task. I set about creating, on the pipe's server side, a new thread which would instantiate a blocking inbound message pipe, and the client side which would write to that pipe when needed. Being on the same PC, security is...
0
1215
by: EricR | last post by:
I am trying to use .NET to "tap into" a named pipe created by a non .NET 3rd party application. Specifically, the application is a table loading utility. It opens a named pipe and waits for input. Does anybody know how I can write to the named pipe from a .NET program. I have tried using the traditional file access methods, and it appears that pipes have a problem with file streams. I have tried API calls, but since I do not have the...
0
2913
by: olaf.dietsche | last post by:
Hi, The system is Windows XP and DB2 v8.1.7. I'm trying to load a text file via named pipe into a table. I have two programs: the first program creates the named pipe, waits for a client and writes the text file into the named pipe. the second program is doing the db2Load() call.
3
5028
by: a | last post by:
Hi everybody, Is it possible to open a named pipe from a php script on Windows? More specifically, I have a Windows service that receives commands through a named pipe, and I'd like to open the client end of the pipe directly from php rather than creating an intermediate process. Thanks,
3
5037
by: DBC User | last post by:
Hi all, I would like to know is there a way to find out if any named pipes are running in a box. How can I go about doing that? Or is there a way to find out if a particular named pipe already running? Thanks
7
7655
by: andrewb | last post by:
Hi all, Having some trouble using named pipes and Visual Basic .NET and would appreciate and help you could offer. Essentially I am trying to develop a simple client/server application that exchanges text messages using named pipes. The internet resources seem a bit scarce and the only Microsoft resource I can find is http://support.microsoft.com/kb/871044.
0
10436
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10213
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.