Reputation: 5141
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
Reputation: 2909
This should work for you: http://www.convertdatatypes.com/Convert-Byte-Array-to-Integer-in-VB6-VBA.html
Upvotes: 4
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