Converting String to UNICODE ( 2 Byte/Char) VARIANT BYTE array

Posted on 2009-02-19
Medium Priority
Last Modified: 2013-11-25
I am integrating a signature capture device. I am receiving the captured signature is tranfered from the device as a string. The string need to be converted to UNICODE ( 2 Byte/Char) VARIANT BYTE array to transform to a BMP image using VB6.0.
Question by:Paawan
1 Comment
LVL 33

Accepted Solution

Robberbaron (robr) earned 2000 total points
ID: 23710362

not sure of the exact format of the byte array you want is but ...

see MSDN for StrConv function.

Dim sInput As String
Dim bOut() As Byte
sInput = "Experts Rule"
bOut = StrConv(sInput,vbUnicode)

Open in new window


Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The online market is growing at an unprecedented rate and retail eCommerce sales are expected to reach $4 trillion by 2020. Yet, the profit is not just there for the taking because you have to set yourself apart from the competition.
In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question