Subj : Re: Using Turbo Debugger and GetProcAddress To : borland.public.cpp.borlandcpp From : Ed Mulroy [TeamB] Date : Wed Dec 15 2004 11:03 pm I have posted a message to borland.public.attachments with a subject of Explicitly Loaded DLL Example Please get it and play with it to hone your TD32 skills using a trivial app where you've no additional problems of looking for the bug in your code. It's the old "separation of variables" trick. Solve the one problem before getting to the ones involving your real code. I was a bit puzzled when doing this as I've been using C++ Builder instead of BC++ for 32 bit apps since about '98. I only am on a machine with BC++ on it because my main machine is sick [now running Win95, Pentium 1, 133MHz, 64M ]. TD32 will not step into the BC++ DLL without debug info loaded. When I built it with C++ Builder 4 (version 4 is all that this machine can take) it would step in but opened a CPU window so I was staring at assembly code (which is just fine by me). Once I had stepped through the line with LoadLibrary on it I could then do a View|Module and load the symbol table for the DLL. With the source code in front of me I could then place breakpoints on any line of interest. Just for info, when I click the menu three-dashes symbol to the left of File in the TD32 menu it reports itself as version 5.0. If yours is an earlier version you might want to go get a newer one here: http://www.shorl.com/dusahysepryky or, in its long form http://www.borland.com/products/downloads/download_cbuilder.html However I do not think the version of TD32 is an issue here. .. Ed > Corey Sellers wrote in message > news:41c0bffa$1@newsgroups.borland.com... > > Thanks for you quick reply! > > The problem is before I call the function, the DLL isn't loaded > so the debugger can't load the symbol table. However, once > I call the function, the debugger's status says "RUNNING", > and I can't break into it (hitting Ctrl-Break doesn't do it). > Once the function has completed, then I can get control > again, but by then its too late. .