I have a buffer of chars. I want to display them in a text box as hex. is there a simple way to do this? Thanks.
Nemoticchigga
0
Junior Poster in Training
Recommended Answers
Jump to PostYou could always use something like this....ofcourse you need to adapt it
#include <iostream> #include <string> #include <sstream> using namespace std; int main(void){ ostringstream hello; hello << hex << (int)'A'; cout << hello.str(); cin.get(); return 0; }
Chris
All 3 Replies
Freaky_Chris
299
Master Poster
Nemoticchigga
0
Junior Poster in Training
Freaky_Chris
299
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.