Brett
Let somebody else handle the serial port component:
TComThread (freeware)
http://www.protogene.com/people/giles/builder.html
TSerialPort (commercial, low cost)
http://www.accent-tek.com
--
Rich Webb Norfolk, VA
raw...@erols.com
>Windows NT denies the access on the serial port. How professionals do solve
>this problem?
Well, you can write a device driver to give you access to the serial port,
or you can use the MS-prescribed "ReadFile()/WriteFile() solutions. You
could also purchase a third-party component to give you this access
yourself...
Jerry Bloomfield (TeamB)
--
http://www.teamb.com Jers...@wwa.com
Please do *NOT* send private e-mail without prior permission (my anti-spam
filters will probably just delete it anyway <g>)
You can't use inport / outport any more. Win32 is more "protected"
than that, so it isn't allowed.
However, you do have a few different options, as have been posted here
before:
Discussion of Port I/O under NT:
http://users.skynet.be/k-net/ParPort/index.html
http://www.bcbdev.com/faqs/faq30.htm
> Harold Howe has contributed something that you might be able to use
> under win95 only:
> http://www.bcbdev.com/components.htm
Or EnTech's Port I/O component:
http://www.entechtaiwan.com/tools.htm
Or, for Win9x only, if you have TASM, you can use the following:
#define outportb(port,val) outb(val,port)
void __fastcall outb(Byte val, WORD port)
{
asm out dx,al
}
#define inportb(port) inb(0,port)
Byte __fastcall inb(Byte dummy, WORD port)
{
asm in al,dx
}
There's also a great site on programming the parallel port:
http://www.lvr.com/parport.htm
+====================================================+
| Jonathan Arnold (mailto:jdar...@buddydog.org) |
| Havas Interactive HyperStudio Engineer |
| http://www.buddydog.org http://www.hyperstudio.com |
+====================================================+
Outside of a dog, a book is man's best friend. Inside
of a dog, it's too dark to read. -- Groucho Marx
Andre Summer wrote:
> Hello,