I hope this info helps someone else in future, because searching these forums for "Prototype already declared" had no obvious matches for this issue.
And now, my original post for posterity:
I'm getting a "Prototype already declared" error for my app today, seemingly out of the blue. For this line:
Code: Select all
Prototype DwmGetWindowAttribute_(hWnd,dwAttribute.l,*pvAttribute,cbAttribute.l)
If I comment out the line, then my app doesn't compile with a different error ("Structure not found: DwmGetWindowAttribute_.")
But my concern is why the Prototype line is now suddenly throwing an error, when I've been using it without problems for months?