Add-ins Visual C++ 5.0

I use the add-in wizard in Visual c++ to create an add-in. After execution I changed/added some code and rebuilds the project. I get the following error: LINK: fatal error LNK1168: cannot open Debug/kalle.dll for writing. Apparently is the dll-file still "active". My problem is how to "deactivate" the dll-file without to shut down the DevStudio. I have tried the following code:
pDll=GetModuleHandle ("kalle.dll");
if(pDll != NULL);

The problem with these lines of code is that DevStudio goes down when executed. Any answer would be highly appreciated.
Who is Participating?
guruprasad031298Connect With a Mentor Commented:
VC++ comes with a tool 'Process Viewer' (PVIEW.EXE). Run this tool. You will get a list of processes that are currently active in your machine. You should be able to see 'kalle.dll' there. Choose this and from the menu 'Process', 'Kill' it. Now the process should have been killed and you should be able to compile again proper.

Hope this helps....
Just a guess.  you could try uncheckin the add-in file in the "add-ins and Macro Files" tab of the "customize" dialog.
na95enmAuthor Commented:
Uncheckin the add-in in the customize dialog doesn't solve the problem.
Thanks anyway.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.