I am trying to convert a C++ library which is using widely DWORD, CString and BYTE in the program, and now I am converting the code from C++ Win32 library to linux program . Als
DWORD
= uint32_t
BYTE
= uint8_t
These types are not OS specifics and were added to C++11. You need to include
to get them. If you have an old compiler you could use boost/cstdint, which is header only.
Use std::string
instead CString
, but you will need to change some code.
With these changes your code should compile on both Windows and Linux.