The Difference Between vbCrLf, vbNewLine and Environment.NewLine

The question, "which is better, vbCrLf, ContrlChars.CrLf, vbNewLine, ControlChars.NewLine, Environment.NewLine, ControlChars.NewLine, or vbNewLine?" is not a question you'd get in C#, since only Environment.NewLine is available.  This is a question that only appears during VB.NET development. So what's the difference between the following five statements? Debug.Print(vbCrLf) Debug.Print(ControlChars.CrLf) Debug.Print(vbNewLine) Debug.Print(ControlChars.NewLine) Debug.Print(Environment.NewLine) Usually, nothing.  They all return […]

Continue reading


Interprocess Communication With Memory-Mapped Files, Part 2

In the previous post, I provided a glimpse into how to use a memory-mapped file to establish a primitive interprocess communication system, responsible for passing along the process ID from one process, and a "shutdown gracefully" message from another. To recap, we have two separate applications: ConsoleAppListener Responsible for performing work and shutting down gracefully […]

Continue reading