Why is it not possible to call RegFree COM and .NET from the VB IDE (VB6 & VBA)?
I have an example project with works when called from compiled VB6 but not from the IDE or from Excel's VBE.
There are 3 DLLs QA.DLL, QB.DLL开发者_如何学C, QAW.DLL. QA is written in C#.NET, QB and QAW are written in VB6. QAW is a COM wrapper of QA.
In the calling code I create an Activation Context and load a manifest file.
All works fine from the exe created with VB6, but not in debug mode in VB6 or in Excel's VBA.
Any ideas what it is that is different about the IDE call and why it doesn't work?
It is because the application is actually running from the directory that the VB6.exe is located. You could actually put your dll's and manifest there and have it work, but if you do much RegFree development that directory is going to become a mess very quickly.
精彩评论