467,130 Members | 1,418 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,130 developers. It's quick & easy.

how can i tap the information going to a label printer in a network

I have situation where i must catch the information which is being sent to a printer in a hospital network.
Jan 5 '15 #1
  • viewed: 5972
2 Replies
Expert Mod 4TB
1) Are you sure? In the US this has massive HIPAA implications - and many other countries have more restrictive privacy laws than the US...

2) Why? Do you need to just note that it's going? Or do you need to manipulate it in some way? If you're looking to manipulate it, I'd recommend going back to where it's being printed from and modifying it there - messing with packets across a network is definitely not the easiest way.
Jan 8 '15 #2
The following is directly how to address your need of "catch[ing] the information."

The most efficient manner is to subclass the program that is sending the information to the printer, then record all data going to and coming from that program.

Subclassing has been around for a long time. It is nothing new.

If you need to know how to do this yourself, then the following is for that.

If you need to write (on your own) that kind of program fast (really fast) then use the Rapid Application Development VB6/sp5 for hooking and subclassing. There is code already on the internet written and stable in VB6 which can be adapted quickly to hook and subclass most Windows based programs. It has even been used to subclass internal parts of other programs. It is very stable.

If you want to write the code in a newer, but no less stable environment, use C++. I would suggest C++11. It comes packaged with CodeBlocks 17.12. CB17 is free.

C++ can do (I guess) every thing that VB6 can do, but it takes far longer to program to the same effect. It is your choice. I have found reason for each as needed.

I started learning C++ last summer (2019) and tried various avenues in that endeavor and settled on CB. I studied C++ editions, not to PhD level, but to my satisfaction, and I have chosen C++11.

I like both VB6 and C++11 each for what I may use them for. One is for very fast program development. The other is for Unicode and large number manipulations, etc.
Jan 5 '20 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by mcmahongg@eircom.net | last post: by
9 posts views Thread by al@it.dk | last post: by
3 posts views Thread by Michael | last post: by
1 post views Thread by =?Utf-8?B?R2VvcmcgRmxlaXNjaGVy?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.