Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/15/08 12:09
Read: times


 
#153366 - Thanks Russ, some thoughts
Responding to: ???'s previous message
This is where I don't excel at programming, I've been getting pretty familiar with the class wizard over the last few days, and since my edit box is set as a "CString" to get the data and then convert it down to a byte value, I've found that the edit box is either set to "CString" or "CEdit" but not both, so I does one handle this?

I've been guided on codeguru.com that I should use CEdit::SetSel and Replace(), but those only apply (i think) if the edit box is a CEdit type.

I don't quite understand how to use the GetWindowText or SetWindowText (which does make sense) to do something like:

Read first keydata convert to hex
store as variable
Read second keydata convert to hex
store as variable
concanetate "0x" + var1 + var2
Send back to dialog box


Sounds easy, I just can't seem to fwrite it correctly or I'm missing something fundamental.......I'm being tossed into this as sink or swim......

I'll look at your tip and see if I can make it work!

Thanks
Chris


List of 18 messages in thread
TopicAuthorDate
C++, 8051, cleaning up a mess......need advise            01/01/70 00:00      
   Trying to convert after typing is too hard            01/01/70 00:00      
   Take a look here...            01/01/70 00:00      
      I gave that a run,            01/01/70 00:00      
   Maybe this will help            01/01/70 00:00      
      Thanks Russ, some thoughts            01/01/70 00:00      
         More thoughts            01/01/70 00:00      
            Your right, you know how it is            01/01/70 00:00      
      Is this it?            01/01/70 00:00      
         Well, no            01/01/70 00:00      
            Hopefully I can answer this correctly            01/01/70 00:00      
               Is Prosise onlin?            01/01/70 00:00      
                  Emailed link to you            01/01/70 00:00      
               Two more questions            01/01/70 00:00      
                  Placeholders for array data            01/01/70 00:00      
               Stop now, before you make things worse!            01/01/70 00:00      
                  No offense taken at all            01/01/70 00:00      
                     I got the link            01/01/70 00:00      

Back to Subject List