Hi I have a problem with converting a struct..
I got 2 different structs but they have the "same" data.
Struct1:
struct sStruct1
{
BYTE Base1;
WORD Base2;
float Base3;
}
Struc2:
struct sStruct2
{
BYTE* Base1;
WORD* Base2;
float* Base3;
}
Now I the problem: I have data inside the struct1 but I need to fill struct2 with the same data.
I have no idea how I could do this..
I tryed this but no luck
DWORD ConvertBYTE(void* pvValue, void* pvBuffer)
{
BYTE* pbyBuffer = (BYTE*)pvBuffer;
*pbyBuffer = *((BYTE*)pvValue);
return sizeof(BYTE);
}