Solved

Add-ins  Visual C++ 5.0

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now