On 27 July 2010 23:32, Matteo Bruni matteo.mystral@gmail.com wrote:
- if(parent_data != NULL)
parent_name = *((char **)parent_data - 1);
That casts away const. The ID3DXInclude interface itself looks somewhat broken to me, but I don't think you need to modify the parent name here. Please use "const char *" and "const void *" or "LPCSTR" and "LPCVOID".