Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Characters in hexadecimal

Characters in hexadecimal

Scheduled Pinned Locked Moved C#
helpgraphics
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shashidharreddy
    wrote on last edited by
    #1

    Hi I am converting a wmf(drawing file) file in to hexa decimal Format here I am able to convert the data from WMF file to hexadecimal but the problem is the characters (A,B,C,D,E,F)in converted Hexa decimal format are coming in Small Case letters which should be in capital Letters can any of u help in getting the characters in to Capitals I am using the following code to convert. uint uiDecimal = 0; uiDecimal=checked((uint)System.Convert.ToUInt32(shapeDiagramData[i])); string str; str = String.Format("{0:x2}",uiDecimal); sw.Write("{0}", str); Shashidhar.

    S 1 Reply Last reply
    0
    • S Shashidharreddy

      Hi I am converting a wmf(drawing file) file in to hexa decimal Format here I am able to convert the data from WMF file to hexadecimal but the problem is the characters (A,B,C,D,E,F)in converted Hexa decimal format are coming in Small Case letters which should be in capital Letters can any of u help in getting the characters in to Capitals I am using the following code to convert. uint uiDecimal = 0; uiDecimal=checked((uint)System.Convert.ToUInt32(shapeDiagramData[i])); string str; str = String.Format("{0:x2}",uiDecimal); sw.Write("{0}", str); Shashidhar.

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      Why not just call str.ToUpper();? Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups