开发者

Connecting native C++ dll with C# by C++/CLI wrapper, Visual Studio issue

开发者 https://www.devze.com 2023-03-30 13:47 出处:网络
I\'m working on a three projects. The first one is a native C++ dll, let\'s name it as a native.dll. The second is a C++/CLI dll (man.dll), whichcontains a bunch of wrapper functions (native.dll is

I'm working on a three projects.

The first one is a native C++ dll, let's name it as a native.dll.

The second is a C++/CLI dll (man.dll), which contains a bunch of wrapper functions (native.dll is statically linked).

Finally, the man.dll is used( as a reference) in a C# WinForm project. Everything work perfect, I can use a native function in C#, but after a couple(!) builds (in debug mode) the C# project, I can't re开发者_如何学运维compile native.dll, I can't even delete this file because Windows says that the file is being in use by Visual Studio. Why?

I'm working in Visual Studio 2010.


Virus scanner can definately cause problems but in my experience they tend to be intermittent. Have you tried the obvious things: - restart visual studio? - logout then back in? - reboot?

Silly as it sounds in this day and age - sometimes it really can be that simple...

0

精彩评论

暂无评论...
验证码 换一张
取 消