converting

F

Fred

Hello People.
I'm trying to develope a program that will send some information through
winSOCK on my windows smartphone. The only thing is that I need to convert a
TCHAR into char to be able to send it.

I tried

char charvariable = (char) TCHARvariable;

but that does not work..

Maybe you guys know a quick way to convert so that I can send the
information on CHAR format.

I am aware that some characters might get lost but it is ok since I'm using
only common letters..
 
D

Doug Robbins - Word MVP

Not really sure what you are trying to do, but look up the following
functions in the Visual Basic Help file

Asc Function
Chr Function
Conversion Functions
Type Conversion Functions

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
F

Fred

Thanks for reply I will check it up.

WHat I'm trying to do is to convert a variable TCHAR (16bit) into a char
(8bit)..

cheers,
 
D

Doug Robbins - Word MVP

Googling for Convert TCHAR comes up with some possibilities that are
probably more appropriate.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
T

Tony Jollans

What language are you working in? You probably need to use some feature of
that language. VBA can't do it - best you can do is to 'manually' make a
byte array from the sting variable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top