473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Using named pipes in VB.NET

Dear All,

I am trying to create named pipes using VB.NET and calls to kernel32 as
shown on the msdn site.
All appears well with the calls and the returned parameters suggests that
data has been transfered, that is the number of bytes received / transmitted
is as expected but there is no data in the buffers.

I have tried all sorts of buffer types byte, string, ..... to no avail.

Is it to do with the way .NET passes the ref (BYREF) to kernel32.dll as I
have seen some references to different ways the old VB versions handled the
pointers ?

Does anyone know if there is a problem with the way VB.NET calls
kernel32.dll.

I have experienced simillar problems trying to get VB.NET to call the
wrappers for OPC. I spent many days trying to get the calls to work until I
found that there was a problem with VB.net and wrappers.

John.
Nov 21 '05 #1
1 4834
Hi,

Maybe this will help
http://www.codeproject.com/csharp/Do...PipesPart1.asp
http://www.codeproject.com/csharp/Do...PipesPart2.asp

Ken
-----------------------
"John Brook" <jb****@aetinc.com> wrote in message
news:uo**************@TK2MSFTNGP09.phx.gbl...
Dear All,

I am trying to create named pipes using VB.NET and calls to kernel32 as
shown on the msdn site.
All appears well with the calls and the returned parameters suggests that
data has been transfered, that is the number of bytes received / transmitted
is as expected but there is no data in the buffers.

I have tried all sorts of buffer types byte, string, ..... to no avail.

Is it to do with the way .NET passes the ref (BYREF) to kernel32.dll as I
have seen some references to different ways the old VB versions handled the
pointers ?

Does anyone know if there is a problem with the way VB.NET calls
kernel32.dll.

I have experienced simillar problems trying to get VB.NET to call the
wrappers for OPC. I spent many days trying to get the calls to work until I
found that there was a problem with VB.net and wrappers.

John.

Nov 21 '05 #2

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

Similar topics

5
by: glenn.owens | last post by:
In the process of doing some routine monitoring/clean-up we've discovered that several (many?) users are apparently set to access our SQL Server 2000 database instances via the Named Pipes...
4
by: Ken Allen | last post by:
Is there any built-in facility for handling named pipes in C#/.Net, or must one use unsafe code to access the WIN32 API directly? There exists some code that uses named pipes heavily and there...
1
by: motimh | last post by:
I am trying to use named pipes to interprocess communication. My concern is the cpu wait time between them. Can someone show me the code to do this in VBNet? Is there an event that can be...
1
by: Jarrod Morrison | last post by:
Hi All Im looking for a way use named pipes between a service app and an app run when a user logs on and be able to pass string based data, im hoping that the service can contact the app that is...
1
by: Jarrod Morrison | last post by:
Hello all Ive been trying to get a service app that i run to interact with the logged on user of the machine and so far havent been very successfull and have read that maybe named pipes is the...
7
by: ahmed.maryam | last post by:
Hi All, I want to set up a named pipe connection between two C# application using visual studio 2005, does anyone know if there are any specific namespaces or system calls that I need to make to...
4
by: kanepart2 | last post by:
I am making a simple program to use display SQL data using C# SqlConnection myConnection = new SqlConnection(@"Trusted_Connection=yes;database=*****database name*****;connection timeout=30"); ...
3
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...
2
by: simkar | last post by:
Error: provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server SqlException (0x80131904) General Info: Application is on server1(outside the firewall)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...

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.