Ik heb een dll geschreven voor het programma 20-sim (www.20sim.com) Deze dll wordt pas geladen als de simulatie begint en niet statisch.
Nu heb ik met bcb bij run parameters de exe van de host applicatie gezet. Maar nog steeds is het niet mogelijk om te debugging. Ik heb het boek Borland C++ builder 6 developers guide erbij gehad en hier staat voor het debuggen van dll's:
Nu heb ik met bcb bij run parameters de exe van de host applicatie gezet. Maar nog steeds is het niet mogelijk om te debugging. Ik heb het boek Borland C++ builder 6 developers guide erbij gehad en hier staat voor het debuggen van dll's:
Debugging DLLs
Debugging a DLL is a very similar to debugging any normal executable application except that a host application is required to load it. You can create the host application that uses the DLL, but in most cases you will be using an existing host, such as an application written in another language that uses the DLL that you have developed.
Load the DLL project into C++ Builder and set any breakpoints in the DLL source code as necessary. Specify th e host application that will load the DLL by entering the full path and name of the host application in the Host Application field on the Local tab from Run, Parameters dialog. Enter any command-line parameters for the application in the Parameters field if necessary.
When the host application is specified, either select Load to run the host application and begin debugging, or simply press OK and run the host application at a later time with Run, RUn. You might do this after setiing additional breakpoints or setting up watches for example.
That's all there is to it. When the breakpoint in the DLL code is hit, you can step trough the source code and use the Debug Inspector, watches, or any other technque during the debug proces. You can use this technique for debugging COM objects and ActiveX components, but for separate processes you can so this only on WIndows NT and Windows 2000 systems that allow cross-process debugging
if broken it is, fix it you should