Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Mon, 22 Sep 2008 13:42:19 -0400,    group: microsoft.public.vstudio.development        back       


Reading information...   
I believe that this is the proper place to broach this question. A
little explanatory information first.

I've developed a Windows application. In a most general\ sense
it works fine. I have a number of components all of which work
as anticipated. I also have a "textbox" component which is used
its development state to read data from the keyboard. When using
the keyboard it works without a hitch. (I have tried the "keydown,"
"keyup," and the "text changed" events - primarily the "down" and
"up" configurations to retrieve data from the keyboard.)

The problem is that when I replace the keyboard with a magnetic
strip/stripe reader none of the three methods works. Data is lost.
A string (read from the card) should be ~150 characters but only
10-12 characters appear to be read to the actual string.

I've looked into other components but they all seem to have only
the (same) three methods as the "textbox." The thought occurred
to me that perhaps I could use "standard input" (as in input, output,
and error) to read the data) looking for an EOL with a readline as
the terminator but I can't find anything which indicates that "input"
can be used in a non-console application.

Here's the question(s):
   = Does anyone know whether "standard.input" can be used in
     a non-console application? If anyone does do they have an
     relative simple example of using it?

   = If there's no way to merge "standard.input" with a non-console
     application, does anyone have a suggestion for how I might be
     able to reliably read data from an already developed component
     like the "textbox?"

Many thanks in advance.

David
date: Mon, 22 Sep 2008 13:42:19 -0400   author:   David Schrader

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us