[borland c++ builder] debugging een dll

Pagina: 1
Acties:
  • 65 views sinds 30-01-2008

  • elgringo
  • Registratie: Januari 2001
  • Laatst online: 01-02 09:13
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:
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


  • NMe
  • Registratie: Februari 2004
  • Laatst online: 22-01 23:51

NMe

Quia Ego Sic Dico.

Je hebt nou al twee topics lopen over dit probleem, en nou open je nog een derde? :?

Dit kan prima in een van je andere topics. :)

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


Dit topic is gesloten.