|
-
Feb 9th, 2017, 10:01 AM
#1
Thread Starter
Lively Member
Return binary from hex string
Hi,
I have a very old and big vbp program and the need to send a binary value to an external dll.
Suposse the string strHex contains a long string of hex values.
I need convert it to "binary" value.
dim strHex as string
strHex = "9D624714C76FB3646575E21504779F4AA1F231DB"
.binary = CLng("&H" & strHex)
or
.binary = CDbl("&H" & strHex
these samples returns error 13 type mismatch.
I've read some about BSTR or Byte BSTR but haven't any code in vb6.
Thanks very much!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|