Using named pipes in VB.NET

  • Thread starter Thread starter John Brook
  • Start date Start date
J

John Brook

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.
 
Hi,

Maybe this will help
http://www.codeproject.com/csharp/DotNetNamedPipesPart1.asp
http://www.codeproject.com/csharp/DotNetNamedPipesPart2.asp

Ken
-----------------------
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top