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

Visual Basic

 
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 
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 
I got it figured out finally.

It's a naming convention issue: in the old style named pipe calls (which are in kernel32, I believe), you have to specify the full path: \\.\pipe\pipename (and the users connect to \\servername\pipe\pipename)

But in .net, you only specify the "pipename" part. It automatically prepends the "\\.\pipe" internally on the server pipe, and the client pipe's New takes either a computer name argument or not (in which case it presumes the pipe is local), and prepends either "\\computername\pipe\" or "\\.\pipe\" as appropriate.

So if you use the old style address specification with the .net NamedPipeServerStream constructor, it actually ends up putting your pipe at \\.\pipe\pipe\pipename! That's fine if the other end is a NamedPipeClientStream, which will do the same manipulation and not cause a problem, but if you try to create a stream with one and connect with the other, one of them will be looking in \pipe\pipe\ and be unable to find it.

Judging from the examples I've seen of how to use .net's named pipe classes, this is a very common error.
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 
QuestionHow can I show a text on mouseover over an image in vb.net? Pin
waner michaud31-Mar-10 3:51
waner michaud31-Mar-10 3:51 
AnswerRe: How can I show a text on mouseover over an image in vb.net? Pin
dan!sh 31-Mar-10 4:40
professional dan!sh 31-Mar-10 4:40 

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.