btw,to use the serial port from J#, see
http://www.mech.upatras.gr/~robgroup/
go to Teams/Logic/Demos/Using a Kaidan eMCee controller
you'll find a sample program there ported from some QBASIC code to VB6,
Delphi5, VJ#.net and Sun Java 1.3. The Sun Java version uses the optional
Java COMM API (would be nice if J# implemented that one in the future) and
the Delphi, VB6 and J# versions use the MS COMM ActiveX control
I don't think the MS COMM control supports talking to parallel ports too as
the Java COMM API does, but you could see that C# code at
http://www.codeproject.com/csharp/csppleds.asp?target=parallel as it was mentioned already and try porting it to J# or wrap it up in a C#
class and call it directly from J# (that's the cool thing with .NET, no
intermediate code to talk to objects created in other .NET languages, as
long as the CLR [Common Language Runtime] / CTS [Common Type System]
conventions are followed)
cheers,
George
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <birbilis@kagi.com> [MVP J#] [9880]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis + Robotics
http://www.mech.upatras.gr/~robgroup
.........................................................................