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.

C/C++ program for communicating with port in Windows XP

Status
Not open for further replies.

samnang39

Full Member level 2
Joined
Oct 26, 2006
Messages
130
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,296
Location
Cambodia
Activity points
2,248
Hi,

c/c++ programme can communicate with port in windows 98 but in windowxp cannot. what should i do?
 

Rooftop

Full Member level 2
Joined
Oct 28, 2004
Messages
135
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,298
Activity points
1,241
C/C++ work with port

i'm using program called "userport" and it works fine. Make sure you have an admin priveledge because it's don't work if you don't have the priveledge.
The program's purpose is to open the user priveledge because window xp and windows 2000 already blocked all user to access port.

Good works
 

    samnang39

    Points: 2
    Helpful Answer Positive Rating

ashad

Full Member level 6
Joined
Mar 28, 2006
Messages
394
Helped
40
Reputation
80
Reaction score
27
Trophy points
1,308
Location
Trento, Italy
Activity points
3,296
Re: C/C++ work with port

by using the C/C++

u can interface the serial and prarllel port ...... for learning purpose please install the Windows 98 for desire result

if u face any problem then i have programs in C languge to interfacing so i will send u .............
 

samnang39

Full Member level 2
Joined
Oct 26, 2006
Messages
130
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,296
Location
Cambodia
Activity points
2,248
Re: C/C++ work with port

Ok thanks but do we can used winxp because i don't want to used win 98. Do we can interface with serial port on winxp by c/c++?
 

ashad

Full Member level 6
Joined
Mar 28, 2006
Messages
394
Helped
40
Reputation
80
Reaction score
27
Trophy points
1,308
Location
Trento, Italy
Activity points
3,296
Re: C/C++ work with port

yes, u can use the serial port in Xp no problem.........

but in parallel port i am not sure because when i was interfacing the LPT onwindows 2000 there was continous logic 1 at the LPT port after some time
 

samnang39

Full Member level 2
Joined
Oct 26, 2006
Messages
130
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,296
Location
Cambodia
Activity points
2,248
Re: C/C++ work with port

Ok could you please send me the example code for serial port in C/C++

Thanks in advance
 

Rooftop

Full Member level 2
Joined
Oct 28, 2004
Messages
135
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,298
Activity points
1,241
C/C++ work with port

Sometimes i must give logic '1' to all the control and data bus to make it works, after give that logic you can use the port normaly. That's what i get when i'm using visual basic 6.0
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top