Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3229616
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:49:53+00:00 2026-05-17T16:49:53+00:00

Well my question is simple and straightforward. Is there any way we can use

  • 0

Well my question is simple and straightforward.

Is there any way we can use hex values like in c++?

I am going to write binary files, but for that i will have to define certain characters like this for example.

\x00\x00\x11\x22\x33\x00\x00

I would first need to convert stuff like this to a byte array, and then write it to a binary text file.

Thanks!

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T16:49:54+00:00Added an answer on May 17, 2026 at 4:49 pm

    No, that’s a problem with modern compilers, like VB.NET’s. There is no one-to-one mapping between bytes and strings anymore when Unicode became the preferred way of handling text. Codepoints like 0x80 don’t have a corresponding character, it is going to get munched when you convert the string to bytes.

    You’ll need to work with a Byte() array in your code. The exact equivalent for your example is:

        Dim data As Byte() = {&H0, &H0, &H11, &H22, &H33, &H0, &H0}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, the question is simple. how can i use the roles in asp.net memebership,
I have a very simple question. Is there any way to relate database errors
Well looks too simple a question to be asked but i asked after going
This seems like a fairly straightforward question, but I couldn't find this particular use-case
seems like a simple question but I don't know JavaScript too well and my
Well... simple question, right? But with no so simple answers. In firefox i use
Simple question, I searched over there and didnt found a way to make this.
Well, pretty simple question I think, but I can't find a satisfying answer. Is
Well this is a simple question i want to filter two elements sorted reverse
Well, simple question. I'm working with VS2008 on an ASP.NET web application which has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.