dword to int
-
Hi. I retrieve a value from the registry and it is a dword. I want to display it in a text box and I also want to store it in a interger? How can I do that? Thank you very much in advance! Well... I am a beginner ...
Maybe you can cast it? int an_int = static_cast(a_dword); In VC++, you can display the value of an int like this: CString str; str.format("%d", an_int); MessageBox(str); This may not be the optimal solution though... my Microsoft-specific programming knowledge is seriously lacking.
-
Hi. I retrieve a value from the registry and it is a dword. I want to display it in a text box and I also want to store it in a interger? How can I do that? Thank you very much in advance! Well... I am a beginner ...
CString str; str.Format("%i", YOURDWORD); yourtextbox.SetWindowText(str); I thing you can just cast it: int yourint; yourint = (int)YOURDWORD; or yourint = static_cast(YOURDWORD); should be something like this. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimmy Hendrix