Solved

Add-ins  Visual C++ 5.0

Posted on 1998-04-08
3
230 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 50 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

734 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