Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

keyword comparison 1

Status
Not open for further replies.

plcjunkie

Industrial
May 6, 2004
4
does anyone know how the keyword "out" in quickbasic is now implemented in vb6 ?
 
Replies continue below

Recommended for you

What did the "out" command do?

Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...
 
As in parellel port output?

Remember...
[navy]"If you don't use your head,[/navy] [idea]
[navy]your going to have to use your feet."[/navy]
 
As I recall, the OUT command posted a byte value directly to a hardware port. In general, Windows (at least in the last 5 years) is designed to prevent direct access to hardware features.

Good Luck
johnwm
________________________________________________________
To get the best from these forums read faq731-376 before posting

UK steam enthusiasts:
 
johnwm is correct. I used to write and read directly to a digital input/output circuit board. example in hex....
out &h200,&h2 would make bit 2 of port 200 go high or turn on. inputs would be inp(&h200). I just assumed there has to be a way to still write applications for these boards. They
are actually quite versatile. 16 inputs and 16 outputs. Quite a bit of control to the outside world with this.
Any thoughts now with a little more detail?

thanks
 
To read & write to the ports in VB6 you need a dll called inpout32.dll You can download it from the web :
There are also example programs etc.

Hope this helps.

Good luck with your projects.


Robin
 
thank you a hundred times over robingobyn , that was exactly what I have been looking for. I posted this question on another forum 6 months ago and never got any response! Thanks to all for taking the time to help/read.
 
There are a number of well-known 'gotchas' associated with inpout32.dll. For more info on hardware interfacing try:

Good Luck
johnwm
________________________________________________________
To get the best from these forums read faq731-376 before posting

UK steam enthusiasts:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor