Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Visual Basic 2012 Programmer's Reference
This is the forum to discuss the Wrox book Visual Basic 2012 Programmer's Reference by Rod Stephens; ISBN: 978-1-1183-1407-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Basic 2012 Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 25th, 2013, 11:33 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Old DOS "terminal" emulation using VB2012

I had given up on Microsoft and Visual Studio although I sought to engage each iteration of the language with an emphasis on Visual Basic.

It seemed that all I wanted to do was cross the river in a row boat and Microsoft was forcing me to command my own StartShip Enterprise, complete with Warp controls.

So I was elated to learn that the Desktop version of VB2012 could operate as a stand-alone work environment and I have become quite comfortable with the new version although I still run up against some as yet "undocumented aliens" that need to be included in your books and on-line tutorials.

But my immediate problem is the need to emulate the old DOS Terminal program to communicate with a laboratory instrument, a Gamma Counter actually. It involves simple two-way communication and the conversation is initiated with the good ole "^C" being sent to the instrument. However, I haven't found a way to send this command and although my datalogging and file update skills are more than sufficient, would someone please direct me to where I can learn more about the transmission side of the application?

Please don't tell me I have to embrace the new VB 2012 Async concepts. I've spent some time there and unless told otherwise would like to learn if a more direct and simple approach is possible for my application.

At your mercy. . .

Robert Gabardy, San Diego, CA
  #2 (permalink)  
Old July 25th, 2013, 03:39 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Quote:
It seemed that all I wanted to do was cross the river in a row boat and Microsoft was forcing me to command my own StartShip Enterprise, complete with Warp controls.
You got that right!

First I would check with the vendor that wrote the gamma counter software to see if they have any suggestions. They may not but if their product is popular, there's a chance someone else already needed this. If they have a high-level solution, like a .NET library, things will be much easier for you.

If you really have to work through a command interface, take a look at this:
Run a DOS application and capture its output in VB .NET
The general idea in .NET is to redirect stdin and stdout so you can communicate with the program running in the console window.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)


Similar Threads
Thread Thread Starter Forum Replies Last Post
not like the book in "Chaper 11"-"Ex11_01" Louaih83 BOOK: Ivor Horton's Beginning Visual C++ 2010 0 April 2nd, 2012 09:38 PM
MSXSL gives error message for "for" inside "select" ilyaz XSLT 1 December 9th, 2010 05:02 PM
Difficulties with "web.config" and "ASPNETDB" CFRham BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 2 July 3rd, 2010 10:19 AM
How to theme the "Browse" button of "FileUpload" control? varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 14th, 2009 01:22 AM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.