Learning the win32 api & keep getting errors
Hi,
I'm learning the win32 api and i keep getting errors at one of my function prototypes where I'm trying to pass a reference variable of type POINT.
Here are the error messages.
error C2143: syntax error : missing ')' before '&'
error C2143: syntax error : missing '{' before '&'
error C2059: syntax error : '&'
error C2059: syntax error : ')'
Prototype
The function.
HWND CreateButton (HWND hwnd, wchr-t* name, int identifier, POINT& pt);
{
….
}
I've played around referencing both classes and structs 20 min before I wrote this post. Just in case i misunderstood something and massively failed. They worked and compiled perfectly.
Question is what I'm doing wrong.








