🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.controls
Article #11

TEdit and \0

#11
From: kbombard
Date: Fri, 11 Sep 1998 00:00
14 lines
1448 bytes
I have created an app that has a bunch of TEdit controls.  I need the user to
enter information in Hex format.  Such as 00 or 0A or 09 or AA or F0 .... 
The problem I see right off is when I do a GetText, the first char is a 0
(zero) and it ends it because it thinks it is terminated.  Then I need to
convert it from ASCII to HEX.  How do I read it in so it does not think it is
terminated and then convert it to a hex number?  I am using Borland 5.02,
C++, and W95.

Thanks in Advance.
Kevin


-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum
Technical Details
Message-ID: <6tbm48$2cs$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113dfb,5861436370df7142,start
X-Google-Attributes: gid113dfb,public
X-Google-Thread: f7033,5861436370df7142,start
X-Google-Attributes: gidf7033,public
X-Google-Thread: 103bde,5861436370df7142,start
X-Google-Attributes: gid103bde,public
From: kbombard@erols.com
Subject: TEdit and \0
Date: 1998/09/11
Message-ID: <6tbm48$2cs$1@nnrp1.dejanews.com>
X-Deja-AN: 390156825
X-Http-Proxy: 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client 192.91.146.35
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Fri Sep 11 17:20:08 1998 GMT
Newsgroups: comp.os.ms-windows.programmer.controls,comp.os.ms-windows.programmer.win32,borland.public.cpp.winapi
X-Http-User-Agent: Mozilla/4.03 [en] (WinNT; U)