Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
MFC ActiveX Control rebuild problem
I am developing MFC ActiveX control and using C# test aplication to test it.
I followed the standard procedure. Added the control in toolbox an put it on form. The control is working fine, but when I change something in MFC project and try to rebuild it I get an error:
"Could not delete file 'd:2D SOFTDotNetTestPIS2004WrapperActiveXdebugPIS2004WrapperActiveX.ocx'.
Make sure that the file is not open by another process and is not write-protected."
PIS2004WrapperActiveX.ocx is my ocx.
So, I remove references on control, shut down VS, start it again and it works.
Is there any way to avoid this when I change some in MFC project and try to rebuild it?