Friday, July 31, 2009

I am trying to access a C# assembly from VB6 but it doesn't show up in the references list -- it is in the GAC

I could be way off base on this, but I've programmed vb6 as well as c++ and c#, so give me a minute. A c# assembly is managed code, and (probably) doesn't have the usual entry points that can be called by vb6 (i.e. standard DLL externals). I'm gonna say that you can only add project references to standard DLLs/OCXs, typelibs, that is, unmanaged code.





Yes, you can call managed (c#) code from unmanaged (c++) code but not, as far as I know, vb6.





If, OTOH, you meant VB.net, that's a whole different issue. You should be able to search/browse for the c# assembly because, although it may be in the GAC, it's also in the bin directory of the solution you used to create it.

I am trying to access a C# assembly from VB6 but it doesn't show up in the references list -- it is in the GAC
Maybe permissions embedded by the assembly author?


No comments:

Post a Comment