flat assembler
Message board for the users of flat assembler.

Index > Windows > [solved]reg value to wide

Author
Thread Post new topic Reply to topic
Overclick



Joined: 11 Jul 2020
Posts: 577
Location: Ukraine
Overclick
Hi
Have I convert the number to ASCII then MultiByteToWideChar or there is some faster solution?
I need to print the number by ID2D1RenderTarget::DrawText.


Last edited by Overclick on 23 Aug 2022, 21:13; edited 1 time in total
Post 23 Aug 2022, 19:23
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 652
Location: Russia
macomics
If we are talking only about numbers (even hexadecimal), then it is enough to perform unsigned byte expansion to words.
Post 23 Aug 2022, 19:42
View user's profile Send private message Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 751
Location: Adelaide
sinsi
Can't you just output the number as unicode?
Post 23 Aug 2022, 21:07
View user's profile Send private message Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 577
Location: Ukraine
Overclick
Oh I see the difference for utf-16. Easy to prepare even dot or minus sign. No need to use converter. Thanks
Post 23 Aug 2022, 21:11
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.