Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Add-ins  Visual C++ 5.0

Posted on 1998-04-08
3
Medium Priority
?
234 Views
Last Modified: 2012-06-27
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:
HINSTANCE pDll;
pDll=GetModuleHandle ("kalle.dll");
if(pDll != NULL);
FreeLibrary(pDll);

The problem with these lines of code is that DevStudio goes down when executed. Any answer would be highly appreciated.
0
Comment
Question by:na95enm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1184143
Just a guess.  you could try uncheckin the add-in file in the "add-ins and Macro Files" tab of the "customize" dialog.
0
 

Author Comment

by:na95enm
ID: 1184144
Uncheckin the add-in in the customize dialog doesn't solve the problem.
Thanks anyway.
0
 
LVL 1

Accepted Solution

by:
guruprasad031298 earned 150 total points
ID: 1184145
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....
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question