Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!gatech!rutgers!bellcore!faline!thumper!ulysses!mhuxo!mhuxu!att!cbnewsc!foz From: foz@cbnewsc.ATT.COM (The fozman) Newsgroups: comp.windows.ms Subject: A puzzling query Message-ID: <227@cbnewsc.ATT.COM> Date: 8 Mar 89 13:33:44 GMT Organization: Tex and Edna Boil's Prairie Warehouse and Curio Emporium Lines: 18 Hi! I am currently developing an application using SDK 2.1. Last night I ran across an interesting bug(?). I had written a new function for it and compiled it (MSC 5.1). While I was running my application, it hung somewhere in the new function I had just inserted. Upon inspection of my code, I noticed that I had written: ReleaseDC(hDC, hWnd); instead of: ReleaseDC(hWnd, hDC); Now I think both HWND and HDC are 16 bit addresses but shouldn't the compiler spit this out as a parameter order error? An enquiring mind would like to know...... Bill Thompson att!ihlpf!foz