Well it was stdcall.
I notice if I disable Microsoft extentions, I cannot set it to stdcall.
ten minutes later....
Ok, DMac was right. It compiles.
I went back to using DMac's project file, (which I should have done before after correcting "NULL", instead of building w a new project).
DMac does use _cdecl as the Calling conv, for the x86
but he checks *three* boxes:
Enable Microsoft extentions
Enable Pelles, and
Define compatibility names.
I did not have the second two checked.
Problem Solved.
Thanks you three !
Ed