Click here to Skip to main content
15,889,867 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Formatting Text with VB Pin
Dalek Dave2-Apr-10 15:39
professionalDalek Dave2-Apr-10 15:39 
GeneralRe: Formatting Text with VB Pin
Luc Pattyn2-Apr-10 15:50
sitebuilderLuc Pattyn2-Apr-10 15:50 
GeneralRe: Formatting Text with VB Pin
Dalek Dave2-Apr-10 15:58
professionalDalek Dave2-Apr-10 15:58 
GeneralRe: Formatting Text with VB Pin
Luc Pattyn2-Apr-10 16:20
sitebuilderLuc Pattyn2-Apr-10 16:20 
GeneralRe: Formatting Text with VB Pin
lodogg2-Apr-10 18:06
lodogg2-Apr-10 18:06 
GeneralRe: Formatting Text with VB Pin
lodogg2-Apr-10 18:04
lodogg2-Apr-10 18:04 
GeneralRe: Formatting Text with VB Pin
Luc Pattyn2-Apr-10 18:23
sitebuilderLuc Pattyn2-Apr-10 18:23 
QuestionPipes and Files - making it work Pin
LurkingGryphon1-Apr-10 11:09
LurkingGryphon1-Apr-10 11:09 
What I'm working on is basically creating a new version of an old server program. The server service receives messages from an oracle database and distributes those messages to all the connected users, a bit like a chat program that only the administrator can talk on. (It's used to inform the client programs when something has changed in the DB so they can always display the most current data.)

Well, we need the new server to handle a whole new type of client that's running on .NET 3.5, but also be backward compatible with the old C++ client.

So the point I'm getting to here is that the system uses named pipes to communicate from server to clients. The way it was designed back in the day (long before I got involved!) had the server calling CreateNamedPipe to open \\.\pipe\serverrouter, and then the clients connected to it by calling CreateFile with \\<server computer>\pipe\serverrouter as an argument.

I've created a server that creates a NamedPipeServerStream and a client that can connect to it, but the old style client can't see that stream at all -- like it doesn't even exist.

As a smaller-scale test I created a new VB.net application and gave it one command:

Dim test As New System.IO.FileStream("\\<server computer>\pipe\serverrouter", IO.FileMode.OpenOrCreate)


Now, here's what brings up my question: If I point that at the computer that's running the old style server, it throws an exception saying "Filestream was asked to open a device that was not a file..." Which is all well and good, I get that -- but when I point it at the computer running the new server program, the exception is "Could not find file". This matches the behavior of the old style client.

What's going on here? Why can't I find the pipe with anything other than a NamedPipeClientStream? A pipe is a pipe, isn't it? How do I get it to at least see the thing? (Actually achieving a connection would be nice too, but I'll settle for being able to see it on the network first!)
AnswerRe: Pipes and Files - making it work Pin
Mycroft Holmes2-Apr-10 23:41
professionalMycroft Holmes2-Apr-10 23:41 
GeneralRe: Pipes and Files - making it work Pin
LurkingGryphon6-Apr-10 3:41
LurkingGryphon6-Apr-10 3:41 
GeneralRe: Pipes and Files - making it work Pin
Mycroft Holmes6-Apr-10 11:52
professionalMycroft Holmes6-Apr-10 11:52 
AnswerRe: Pipes and Files - making it work Pin
Gideon Engelberth3-Apr-10 6:09
Gideon Engelberth3-Apr-10 6:09 
GeneralRe: Pipes and Files - making it work Pin
LurkingGryphon6-Apr-10 3:45
LurkingGryphon6-Apr-10 3:45 
QuestionBind listview using dataset Pin
sandhya1431-Mar-10 19:08
sandhya1431-Mar-10 19:08 
AnswerRe: Bind listview using dataset Pin
Paramu197331-Mar-10 20:26
Paramu197331-Mar-10 20:26 
AnswerRe: Bind listview using dataset Pin
William Winner1-Apr-10 7:49
William Winner1-Apr-10 7:49 
QuestionVBA - Access 2007 print preview properties Pin
john john mackey31-Mar-10 11:16
john john mackey31-Mar-10 11:16 
AnswerRe: VBA - Access 2007 print preview properties Pin
Eddy Vluggen31-Mar-10 12:24
professionalEddy Vluggen31-Mar-10 12:24 
GeneralRe: VBA - Access 2007 print preview properties Pin
john john mackey1-Apr-10 6:05
john john mackey1-Apr-10 6:05 
QuestionCustom Compilation Error Pin
programmervb.netc++31-Mar-10 9:24
programmervb.netc++31-Mar-10 9:24 
AnswerRe: Custom Compilation Error Pin
Eddy Vluggen31-Mar-10 12:58
professionalEddy Vluggen31-Mar-10 12:58 
GeneralRe: Custom Compilation Error Pin
EliottA1-Apr-10 6:04
EliottA1-Apr-10 6:04 
GeneralRe: Custom Compilation Error Pin
Eddy Vluggen1-Apr-10 22:34
professionalEddy Vluggen1-Apr-10 22:34 
GeneralRe: Custom Compilation Error Pin
programmervb.netc++4-Apr-10 12:22
programmervb.netc++4-Apr-10 12:22 
GeneralRe: Custom Compilation Error Pin
Eddy Vluggen5-Apr-10 0:15
professionalEddy Vluggen5-Apr-10 0:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.