[Solved] Conversion from DWORD to QString
-
Hi,
I have a function wich returns a DWORD
i am unable to convert it to std::string or Qstring
any help would be appreciated
Thank You
-
DWORD is no standard C++ datatype, it is Microsoft specific, but according doe "MSDN":http://msdn.microsoft.com/en-us/library/cc230318(v=prot.20).aspx it isdefined as:
unsingend long, so you can:qstr = QString::number(dw);
-
on your line 2 and 4 i get the following errors :(
main.cpp:1699: error: C2079: 'sstr' uses undefined class 'std::basic_stringstream<_Elem,_Traits,_Alloc>'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]main.cpp:1701: error: C2228: left of '.str' must have class/struct/union
type is 'int' -
You've got some "include" missing.
-
in can't figure what is the lib i should include ...
-
@
#include <sstream>
@Uncle google has answers to many secrets...
-
thank you again !
-
Pleasure. Please add "[Solved]" to the beginning of the topic's title if you consider this to be solved.