Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!shlump.nac.dec.com!sieras.enet.dec.com!wallis From: wallis@sieras.enet.dec.com (Barry L. Wallis) Newsgroups: comp.windows.ms.programmer Subject: CreateWindows() with BC++ gives exception 13 / error 0 Message-ID: <21029@shlump.nac.dec.com> Date: 12 Mar 91 20:31:13 GMT Sender: newsdaemon@shlump.nac.dec.com Organization: Digital Equipment Corporation Lines: 24 One of my first Windows programs is to try and encapsulate the Windows code into reusable objects (using Borland C++). I have studied the various techniques for passing an object pointer to WndProc() so it can be put into the cbWndExtra area via GetWindowWord/Long() PutwindowWord/Long(). Compiling the HELLOW project that comes with BC++ works successfully. However, when I try and stuff a pointer into the lpParam area when I do CreateWindow() (it's the last argument) I get an Exception 13 / error 0. I cannot find Windows exceptions documented in TFBM [where B => Borland and M => manual + online documentation; however, I have not yet purchased the MS Programmer's Guide to Windows 3.0 yet]. Cany anyone tell me what this means and where to find the reference for myself? Also, when I substitute NULL for the last argument the call succeeds. - Thanks for your help, - A Windows virgin who does not intend to be sacrificed ;-) --- Barry L. Wallis USENET: wallis@labc.dec.com Database Consultant Prodigy (don't laugh): DNMX41A U.S. DECtp Resource Center DECUServe: EISNER::WALLIS (not on the net yet) Los Angeles, CA "No one voted for me, I represent myself" ---