I have a problem casting a long to an int in c++
There is a long "biWidth" in the &pVideoInfoHeader->bmiHeader struct, I simply want to read this into an integer value "Width"
//check the video info header Width=(int)(&pVideoInfoHeader->bmiHeader.biWidth); Height=(int)(&pVideoInfoHeader->bmiHeader.biHeight); //break point here
When I step through the code to the break point after the assignment and use the debugger to check the values it says "&pVideoInfoHeader->bmiHeader.biWidth | 176", which is fine, but "Width | 3253404"
Can anyone help me find out what is going on?
Edited 6 Years Ago by hanvyj: n/a