Link to home
Start Free TrialLog in
Avatar of na95enm
na95enm

asked on

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:
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.
Avatar of nietod
nietod

Just a guess.  you could try uncheckin the add-in file in the "add-ins and Macro Files" tab of the "customize" dialog.
Avatar of na95enm

ASKER

Uncheckin the add-in in the customize dialog doesn't solve the problem.
Thanks anyway.
ASKER CERTIFIED SOLUTION
Avatar of guruprasad031298
guruprasad031298

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial