I've recently started to try and code windows programs but there's something wrong...
When I try to run the program, I get the following error:
Error: a.cpp(24,24):Cannot convert 'long (__stdcall *)(void *,unsigned int,unsigned short,long)' to 'long (__stdcall *)(void *,unsigned int,unsigned int,long)'
I then commented out the "problem" line and tried to run it again only to get another eror:
Error: Error: Unresolved external '_main' referenced from D:\APPS\PROGRAMMING\BC5\LIB\C0X32.OBJ
I don't know if the problem lies with the compiler or if the book is wrong. I copied the example exactly out of the book : Turbo C/C++ the complete reference second edition.
here's my source if you guys want to take a look