Original Post
This is not a DirectX spesific question but since the error occurs in my DirectX project ill ask it here anyway. Why cant i use a const GUID variable in a switch-case statement? im using switch to loop through a X-File to parse through the templates in the X-File. I know i just can use if statements instead, but i would rather use switch-case.
By the way the error message i get is:"switch expression of type ''const GUID'' is illegal"