简体   繁体   中英

how to debug a dll winamp plugin in Visual Studio 2010 written in C++?

I'm developing a Winamp plugin. I have a project that builds a .dll file. This file is actually the plugin. I want to debug that plugin. I need some recipe Step by step. I have already set the Configuration Properties - > Debug ging -> Command to "C:\\Program Files (x86)\\Winamp\\winamp.exe" . So, when I hit debug winamp actually starts the plugin but then some C++ runtime fatal error occure.


EDIT:

The question is how to prepare for the debugging? How to tell winamp.exe that gen_my_file.dll is a plug-in? (Winamp scans the C:/Program Files/Winamp/Plugins/ directory for plugins. To start the plugin It must be there, but how to tell visual studio export the .dll there and link it somehow?)

Here is what is happening: 1) I hit F5

在此处输入图片说明

Then I hit YES.

2) Second message appears

在此处输入图片说明

3) Voila the plugin is started!

在此处输入图片说明

4) ... and when I hit OK ...

在此处输入图片说明

I have tested this with empty project so, there is no way to breaks because of bug in the plug-in

Ok, after a few days of research, finally I found a solution! The problem with the errors was resolved, they was my problem. The most important part is that I had to set post-build event that copies the dll to the appropiate directory (../Winamp/Plugins). After this intervention the debuging was working like a charm :) Here is an example with Paint.NET - it work at the same principle. http://forums.getpaint.net/index.php?/topic/4209-how-to-debug-your-plugin/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM