LunchMarble
LunchMarble

Reputation: 5141

Convert Integer to Byte Array In VB6

How do I convert an Integer value to a Byte Array in Visual Basic 6? I can obviously do this very easily in .NET with the BitConverter, but I couldn't find anything similar in VB6.

Upvotes: 2

Views: 5803

Answers (2)

Bob77
Bob77

Reputation: 13267

You can LSet between two UDTS, you can use CopyMemory, you can use a TLB that gives access to parts of the runtime not normally exposed, etc. There are multiple options here.

Upvotes: 3

Related Questions