Converting a Structure to a String and Back. 
Author Message
 Converting a Structure to a String and Back.


Quote:
> I need to be able to convert a a structure containing longs, images, and
> other strings into one string that can be transferred to another machine and
> read back into the original longs, images, and strings.

Fixed-length strings? If so, read Knowledge Base article:

How to Compare User-Defined Type Variables in Visual Basic
Article ID: Q88551

--
VB Info: http://www.*-*-*.com/ ~balchen/vb/visual.htm
FAQ: http://www.*-*-*.com/ ~balchen/vb/faq.htm
Knowledge Base: http://www.*-*-*.com/ ~balchen/vb/kb.htm



Tue, 16 Feb 1999 03:00:00 GMT  
 Converting a Structure to a String and Back.

Quote:
> I need to be able to convert a a structure containing longs, images, and
> other strings into one string that can be transferred to another machine
and
> read back into the original longs, images, and strings.  

If you just mean making a byte by byte copy of the structure you can use
the hmemcpy API call.
--

Robert Chafer



Tue, 16 Feb 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. BinaryRead - howto convert binary string back to string array

2. HELP: Structures to Strings and back again....

3. Convert a picture to string and get it back

4. Convert Strings to Byte arrays and back

5. *Is there a way i can convert a string to ACSII format and then back?*

6. Converting custom vars into string and back?

7. Q: Converting LONG into Binary strings and Back...??

8. Q: Converting LONG into Binary strings and Back...??

9. Convert SID to a string and back again

10. How to convert string to binary and then convert string back to binary for usage in UDT

11. I'd use string methods more if string were a structure and not a class

12. converting a string to a long (string contains a Hex number)

 

 
Powered by phpBB® Forum Software