Solved

Add-ins  Visual C++ 5.0

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

831 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