Avatar of yingchunli
yingchunliFlag for Canada asked on

Debug dll

I have a vc 6 project to create a dll (myDll.dll). This dll is used by a software product (theirProduct.exe). Now an error is reported by the user of this product. How can I debug my dll for the error in the product (I have the product.exe, but not any source code of the product) ?
Editors IDEs

Avatar of undefined
Last Comment

8/22/2022 - Mon

>> I have the product.exe, but not any source code of the product) ?
That's fine. Just run the project.exe from Visual Studio, it will load and run your DLL. You can just set break-points in your DLL code and the debugger will stop when it hits them.
This link isn't specific to VS6.0 but the principles still apply.

Thanks evilrix, your comment is very close to what I want. The only problem left is that, visual 2005 and visual C++ 6.0 coexist on my computer. As I debug the code, it always goes to take visual 2005 as the debugger (which is not what I want). I would like to use the VC 6.0 as my debugger. How can I do it?


Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Also, don't forget to put the Debug build of your DLL next to theirProduct.exe, or else you won't be able to actually debug anything properly.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.