G
Guest
I am finally able to call my .Net object from a VB6 project (see posting
'Calling VB.Net classes from VB6', thanks to the reference Tony gave me to:
article:http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx
The next step was to see if I could still use the assembly in a .Net
application. I added another project to the original solution was was able
to create a reference to it through the projects tab, no problems so far.
I compiled the project with a strong signature and used the gacutil to place
it in the GAC. I verified with Windows explorer that it was there, and again
no problems.
I then created a new .Net project and tried to add a reference to it (from
the .Net tab) and it was not there! grrrr It was on the Com tab, so I tried
to ad the reference to it and got the following error message:
"A reference to 'Test Class' could not be added.
The ActiveX type library C:...\TestClass.tlb' was exported from a .Net
assembly and can not be added as a reference.
Add a reference to the .Net assembly instead."
BUT THE ASSEMBLY IS NOT LISTED ON THE .NET TAB!!!!
Ok, what to do now? Shouldn't I be able to share this assembly with several
..Net projects w/o including a local copy of it into each one?
'Calling VB.Net classes from VB6', thanks to the reference Tony gave me to:
article:http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx
The next step was to see if I could still use the assembly in a .Net
application. I added another project to the original solution was was able
to create a reference to it through the projects tab, no problems so far.
I compiled the project with a strong signature and used the gacutil to place
it in the GAC. I verified with Windows explorer that it was there, and again
no problems.
I then created a new .Net project and tried to add a reference to it (from
the .Net tab) and it was not there! grrrr It was on the Com tab, so I tried
to ad the reference to it and got the following error message:
"A reference to 'Test Class' could not be added.
The ActiveX type library C:...\TestClass.tlb' was exported from a .Net
assembly and can not be added as a reference.
Add a reference to the .Net assembly instead."
BUT THE ASSEMBLY IS NOT LISTED ON THE .NET TAB!!!!
Ok, what to do now? Shouldn't I be able to share this assembly with several
..Net projects w/o including a local copy of it into each one?