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!