Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 16th, 2005, 7:35 AM   #1
anant_tickoo
Programmer
 
Join Date: Sep 2005
Posts: 50
Rep Power: 0 anant_tickoo is an unknown quantity at this point
communicating with printer port

hi, i am trying to use my printer port to send and recive the data. it was all working fine untill i had to do it on windows xp. now my basic fuctions do't work like inportb,outportb etc . so i ahve no way to do so . now can any one help me out.



electronics student so do't have much of hand in c API.
tahnks
anant_tickoo is offline   Reply With Quote
Old Sep 16th, 2005, 8:46 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
More modern OSes work in protected mode and shield most I/O from the machinations of the average programmer (for good reason -- you might kill another running app). MSDN is the place to start for things like this.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Sep 16th, 2005, 11:53 AM   #3
anant_tickoo
Programmer
 
Join Date: Sep 2005
Posts: 50
Rep Power: 0 anant_tickoo is an unknown quantity at this point
but could u give some hints so that i can get a head start.

thanks
anant_tickoo is offline   Reply With Quote
Old Sep 16th, 2005, 12:22 PM   #4
ViOLATiON
Programmer
 
Join Date: Sep 2005
Posts: 58
Rep Power: 4 ViOLATiON is on a distinguished road
http://www.google.ca/search?hl=en&q=...e+Search&meta=

Maybe one of those websites can help you
ViOLATiON is offline   Reply With Quote
Old Sep 16th, 2005, 12:23 PM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I don't know what you mean by "hints", exactly. Consider if you executed your program that communicated directly with the printer. What would happen if the printer were currently spitting out a file spooled by, say, Word? Not gonna do that, you say? Who's to know? Consequently, you are buffered from sensitive areas by controlling mechanisms of the OS. Drivers (which now do the bulk of that sort of work) run with different levels of permission than the average application. MS has a DDK (driver development kit). MSDN has lots of information on using such things. If you're looking for someone to pop you a short function that will solve the problem, you're no doubt out of luck. The sort of thing you're looking for is called Windows I/O Ctl.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Sep 16th, 2005, 2:47 PM   #6
anant_tickoo
Programmer
 
Join Date: Sep 2005
Posts: 50
Rep Power: 0 anant_tickoo is an unknown quantity at this point
hint meant, a function that could do the intraction with ports & can write and read frm it. i have made a ckt (wireless) which could transmitted and recieve the data to other computer. it takes data frm printer port and feeds to it. it is duplex in nature .code runs fine in 9x. but i have to present it on xp, so the problem lies here. i do't have any idea how to do it in xp coz xp does not allow direct hardware interaction. so i am stuck.
anant_tickoo is offline   Reply With Quote
Old Sep 16th, 2005, 4:47 PM   #7
Scorpions4ever
Programmer
 
Join Date: Jun 2005
Posts: 86
Rep Power: 4 Scorpions4ever is on a distinguished road
You could use something like this:
http://www.beyondlogic.org/porttalk/porttalk.htm
Scorpions4ever is offline   Reply With Quote
Old Sep 16th, 2005, 4:55 PM   #8
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,221
Rep Power: 5 grumpy is on a distinguished road
There is also a lot of information available through this link.
grumpy is offline   Reply With Quote
Old Sep 20th, 2005, 5:48 AM   #9
anant_tickoo
Programmer
 
Join Date: Sep 2005
Posts: 50
Rep Power: 0 anant_tickoo is an unknown quantity at this point
can i do this without the dlls grumpy
anant_tickoo is offline   Reply With Quote
Old Sep 20th, 2005, 12:49 PM   #10
anant_tickoo
Programmer
 
Join Date: Sep 2005
Posts: 50
Rep Power: 0 anant_tickoo is an unknown quantity at this point
thaTS INPOUT32.DLL IS NOT WORKING CAN I HAVE A DIRECT APPROACH.
anant_tickoo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:31 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC