Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #37.0K
Hello, I made the following code to convert known datatypes to bytes: [CODE]template <class T> void convertToByte(const T *t, PBYTE pbArray) { DWORD dwSize = sizeof(T); memset(pbArray, 0, dwSize); memcpy_s(pbArray, dwSize, reinterpret_cast<LPCVOID>(t), dwSize); } [/CODE] But i was wondering how i'd go about it without passing a datatype into the … |