🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

5 total messages Started by L C Willoughby Tue, 29 Sep 1992 17:59
OUT / INP in Visual Basic for Windows?
#210
Author: L C Willoughby
Date: Tue, 29 Sep 1992 17:59
19 lines
870 bytes
Does Visual Basic for Windows have the output/input to/from hardware ports
commands OUT and INP that QuickBasic and most other basics have? Looking
through books on VB for Windows in a bookstore I saw no mention of these
commands.

Are they available in the new Visual Basic for DOS?

Does Visual Basic for DOS have routines for programming mouse interaction?

Will Quickbasic 4.5 *.QLB & *.LIB libraries work with VB for DOS?

Thanks

Charles Willoughby

Department of Chemistry
University College London
UK
Re: OUT / INP in Visual Basic for Windows?
#224
Author: Martin Hepperle
Date: Wed, 30 Sep 1992 08:24
28 lines
1352 bytes
In article <1992Sep29.175957.30278@bas-a.bcc.ac.uk> ucca021@ucl.ac.uk (L C Willoughby) writes:
>
>Does Visual Basic for Windows have the output/input to/from hardware ports
>commands OUT and INP that QuickBasic and most other basics have? Looking
>through books on VB for Windows in a bookstore I saw no mention of these
>commands.
>
>Are they available in the new Visual Basic for DOS?
>
>Does Visual Basic for DOS have routines for programming mouse interaction?
>
>Will Quickbasic 4.5 *.QLB & *.LIB libraries work with VB for DOS?
>
>Thanks
>
>Charles Willoughby
>
>Department of Chemistry
>University College London
>UK


see "ftp.cica.indiana.edu" in pub/pc/win3/programr/vbasic:

inpout.zip      920603  InpOut.dll: INP and OUT Replacement for Vbasic


Martin.
Re: OUT / INP in Visual Basic for Windows?
#228
Author: Phillip Cooper
Date: Wed, 30 Sep 1992 15:25
35 lines
1399 bytes
In article <1992Sep29.175957.30278@bas-a.bcc.ac.uk> ucca021@ucl.ac.uk (L C Willoughby) writes:
>
>Does Visual Basic for Windows have the output/input to/from hardware ports
>commands OUT and INP that QuickBasic and most other basics have? Looking
>through books on VB for Windows in a bookstore I saw no mention of these
>commands.
>

These instructions are unavailable in VB/WIN 1.0.  Although, several
third party libraries provide them (and you could also write your
own DLL to do this).

>Are they available in the new Visual Basic for DOS?

Yes.

>
>Does Visual Basic for DOS have routines for programming mouse interaction?
>

The mouse is automatically available to your programs in VB/DOS.  Similiar
to VB/WIN.

>Will Quickbasic 4.5 *.QLB & *.LIB libraries work with VB for DOS?
>
No.  VB/DOS uses far strings, and QB uses near strings.  Generally this 
difference would cause the libraries to be incompatable.

>Thanks
>
>Charles Willoughby
>
>Department of Chemistry
>University College London
>UK
Re: OUT / INP in Visual Basic for Windows?
#231
Author: Steven Podradchik
Date: Wed, 30 Sep 1992 22:38
31 lines
1797 bytes
>
>Does Visual Basic for Windows have the output/input to/from hardware ports
>commands OUT and INP that QuickBasic and most other basics have? Looking
>through books on VB for Windows in a bookstore I saw no mention of these
>commands.
Writing or reading directly to hardware is dangerous under Windows because
you can't be sure what other apps are doing.  Therefore, you should either:
1.  Go thru the Windows API for comm functions (our PSS people will be happy
to explain this ... actually quite easy)
2.  Use a custom control available from several vendor such as MicroHelp
and Crescent (among others)

>Are they available in the new Visual Basic for DOS?
Yes.  Every last language feature that Basic PDS has, incl. INP and OUT
work unmodified in VB/DOS.  Please keep in mind that VB/DOS has the Basic
PDS 7.1 code at its core...we didn't try to emulate QB/PDS, we built on top
of it .. like we did for VB/Win.

>
>Does Visual Basic for DOS have routines for programming mouse interaction?
Absolutely.  Forms and controls work automatically with a mouse.  You do not
write one byte of code for it.

>
>Will Quickbasic 4.5 *.QLB & *.LIB libraries work with VB for DOS?
Generally yes but you should call your vendor.  The libs need to work
with Far Strings (virtual all commercial .libs/.qlbs already do).  Your
vendor might also have enhanced versions of your current libs.

Thanks,
Steve Podradchik
Re: OUT / INP in Visual Basic for Windows?
#234
Author: Fred Freeland
Date: Wed, 30 Sep 1992 23:58
33 lines
2198 bytes
In article <1992Sep29.175957.30278@bas-a.bcc.ac.uk> ucca021@ucl.ac.uk (L C Willoughby) writes:
>
>Does Visual Basic for Windows have the output/input to/from hardware ports
>commands OUT and INP that QuickBasic and most other basics have? Looking
>through books on VB for Windows in a bookstore I saw no mention of these
>commands.

No, Visual Basic for Windows does not have direct port access via OUT and
INP. Because it's a Windows application, it must use the Windows API to
access ports.

>
>Are they available in the new Visual Basic for DOS?

Yes, OUT and INP are definitely still in there for Visual Basic for MS-DOS.

>
>Does Visual Basic for DOS have routines for programming mouse interaction?

You bet. That's what event-driven programming is all about. Mouse support
is built-in. All you have to do is program what you want to happen when
a mouse moves, or a button clicks. It's great!

>Will Quickbasic 4.5 *.QLB & *.LIB libraries work with VB for DOS?
>
The compiled files will not work by simply plugging them in. You'll have
to recompile the source code. Then everything will work fine.


-- 
Frederick F. Freeland Jr.                        "Of all the things I've lost,  Microsoft Corporation                               I miss my mind the most!"   One Microsoft Way  
Redmond, WA 98052 (206) 882-8080                                                                                                                                internet: fredf@microsoft.com                                                   arpanet:  fredf%microsoft@uw-beaver.ARPA
uucp:     uunet!microsoft!fredf                                                                                                                                 Opinions expressed over this signature are my OWN and not those of my employer! 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads