Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to access port using C++ under Windows XP?

Status
Not open for further replies.

HARRYNOV

Newbie level 4
Joined
Jun 21, 2005
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,331
How to access port using c++ under windows xp?
 

JankoMuzyk

Member level 2
Joined
Apr 4, 2005
Messages
42
Helped
5
Reputation
10
Reaction score
0
Trophy points
1,286
Location
Poland
Activity points
1,653
Re: access port

In windows XP you don't have direct access to ports.
You must write own kernel mode driver that can interfacing directly to ports or use this h**p://www.beyondlogic.org/porttalk/porttalk.htm - this kernel driver allow windows application read/write direct to any port.
 

HARRYNOV

Newbie level 4
Joined
Jun 21, 2005
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,331
access port

i has tryed that but it is not work. Can you give me a snippet program in c++ to use porttalk. i has installed it on c:\windows\system32\drivers directory and i has run ollawio.exe. thanks.
 

JankoMuzyk

Member level 2
Joined
Apr 4, 2005
Messages
42
Helped
5
Reputation
10
Reaction score
0
Trophy points
1,286
Location
Poland
Activity points
1,653
Re: access port

Why its not work? I check this driver some time ago, and all work fine. Sample sources are available in porttalk22.zip package.
 

macxom

Member level 2
Joined
Feb 2, 2002
Messages
53
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
328
Re: access port

it can be that it does not work by the SP2 of XP ... passes that to me now
 

mit001

Newbie level 6
Joined
Apr 11, 2002
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
20
Re: access port

to get direct acces on XP, Try UserPort by Tomas Franzon based on an article written by Dale Roberts 8/30/95, published in May 96 Dr
Dobbs Journal, see www.ddj.com.

or Eltima's vport.ocx , vportxp for virtual ports
 

heino

Newbie level 3
Joined
Aug 2, 2005
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,318
Re: access port

May be you can try out the active control or IO dll at www.geocities.com/bagtool/parallel_access.html

My VB program under XP & Win2K which controlling my water heaters & lighting is working well under the activex/IO dll above.

Oh ya... please check whether your computer's parallel port is on ECP mode (bi-directional) which can be used to read or write the port. If it is on SPP mode (one way), then it can write data to port only.


heino:idea:
 

janab_a

Newbie level 5
Joined
Jan 25, 2006
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,376
access port

Hi all,

i am new to programming in VisualC#.NET.

Is there any (simple) way in which i can access the COM port (read/write to XML device connected to it) using either Wndows Application (prefered) or Console Application!!

The "using System.IO.Ports" is not available in VS.NET 2003. Likewise the 'MSComm' control.

Please help.. thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top