Technology Questions

Go Back   Technology Questions > Hardware Questions > Electronics > Pocket PC General

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-15-2007, 11:08 AM
Gl4com
Newsgroup Contributor
 
Posts: n/a
how to print HEX on a ppc screen ?

Hi Group,

I have an application where I receive some HEX data through a virtual
com port, just few bytes and I want to print the HEX values on a pocket
PC screen.

How can I do that ?

This is my part of the code:

// Put text in receive text box.
SendDlgItemMessage (hWnd, ID_RCVTEXT, EM_REPLACESEL, 0,
(LPARAM)szText);

where sxText is a BYTE array with the HEX values, I would like to have
something like a "classic" printf( ... %x ..)

thanks,

Gl.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 01-15-2007, 11:08 AM
  #2 (permalink)  
Old 01-15-2007, 11:08 AM
r_z_aret@pen_fact.com
Newsgroup Contributor
 
Posts: n/a
Re: how to print HEX on a ppc screen ?

This question was asked and answered in
microsoft.public.pocketpc.developer, which is a much more appropriate
newsgroup.


On 11 Jan 2007 16:24:08 -0800, "Gl4com" <gl4com******.com> wrote:

>Hi Group,
>
>I have an application where I receive some HEX data through a virtual
>com port, just few bytes and I want to print the HEX values on a pocket
>PC screen.
>
>How can I do that ?
>
>This is my part of the code:
>
>// Put text in receive text box.
> SendDlgItemMessage (hWnd, ID_RCVTEXT, EM_REPLACESEL, 0,
> (LPARAM)szText);


TCHAR sM[50];

_stprintf( sM, _T( "%x" ), szText );
SendDlgItemMessage (hWnd, ID_RCVTEXT, EM_REPLACESEL, 0, (LPARAM)sM );

>where sxText is a BYTE array with the HEX values, I would like to have
>something like a "classic" printf( ... %x ..)
>
>thanks,
>
>Gl.


-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I print a folder content LIST not using "print screen"? OhJoanna Microsoft Office 2 12-10-2008 02:30 PM
ALT + PRINT SCREEN Marc Windows Vista 1 07-01-2008 08:30 PM
Disable Print Screen ( capture screen function ) Figo Windows XP 2 01-22-2008 10:40 AM
Print Screen Paintwagon Windows XP 10 07-03-2007 07:41 AM
Re: print screen key Colleen Windows XP 0 01-04-2007 04:17 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 10:21 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0