Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Question about debugging dll
Re: Question about debugging dll [message #13711 is a reply to message #13710] Wed, 23 January 2008 23:52 Go to previous messageGo to previous message
digital.raymond is currently offline  digital.raymond
Messages: 5
Registered: January 2008
Location: Lyon, France
Promising Member
bytefield wrote on Wed, 23 January 2008 23:10

You can debug a dll by make it a program. Put a main function in it , compile and run it as a program. If it work well then you can remove the unwanted main and compile it again as a dll and use it in your programs.

Yes, i can do that, but it cost me too much effort Smile and i'm lazy Twisted Evil ...

bytefield wrote on Wed, 23 January 2008 23:10

You cannot (guess) run a dll(alone) in a debugger since there is no call to its functions(how you test it?).

Totally agree with that, but look at my first post, i give an elegant (and easy) workaround:
use of rundll32.exe (from windows\system32) which accept two arguments, the name of a dll and an entry point (exported function).
In my case, i want to debug indirectly mydll.dll by using the following syntax:
rundll32.exe mydll.dll,Test
But i don't know how to pass it to the debugger !

bytefield wrote on Wed, 23 January 2008 23:10

However the Upp is made with statically linking in mind (see dll hell Razz ). Hope i was usefull(but don't know if it is the right answer Confused ).

I don't have the choice, i am bound to DLL (and Hell !) Very Happy

Anyways, your interest is greatly appreciated.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating shared libs
Next Topic: Strange build error only after changing
Goto Forum:
  


Current Time: Sun Sep 07 12:32:12 CEST 2025

Total time taken to generate the page: 0.07686 seconds