I noticed that every GetSaveFileName/GetOpenFileName example on the web uses the ZeroMemory macro after initializing the OPENFILENAME structure, like this:
My question is why?Code:OPENFILENAME ofn; ZeroMemory(&ofn,sizeof(ofn));
Why do I need to fill my structure with zeros?
What is OPENFILENAME any different from any other WinAPI structure I initialized before and didn't use ZeroMemory?




Reply With Quote