Re: How to use VB2005 .dll Class Library in VB6 ?s

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You're actually there.
Intellisense won't pick up your public methods & members without some more
attributes in the .NET side.
But just code calls to them anyhow, and it should work fine.
It does for me!

- Turtle

"JerryWEC" <JerryWEC@xxxxxxxxxxxxxxxxx> wrote in message
news:OL8U9x$OHHA.3544@xxxxxxxxxxxxxxxxxxxxxxx
Hi everyone!

I'm trying to use my CLA_Logging.dll (VB.net 2005) in VB6. I have used
the
following to create a type library...

tlbexp cla_logging.dll /nologo /silent /verbose
tlbexp cla_logging.dll /nologo /verbose

Both times the cla_logging.tlb file was created. (only 2k in size ???)

I have also tryed to do a regsvr32 cla_logging.tlb and this did not work.
So
I tryed the reg assembly tool...

regasm cla_logging /tlb:cla_logging.tlb

This to looks like it worked. However, when I reference the
cla_logging.tlb
in VB6 the cla_logging object shows up in the object browser but I don't
see
any of the public properties or methods of my class library.

What do I need to do to get this to work? Help!!!

TIA! JerryM





.



Relevant Pages

  • Re: IPrincipal and IsInRole
    ... FullTrust named permission set (which a developer can most likely grant to ... it doesn't only affect public methods since low accessibility ... members can be accessed via reflection. ... > My own security IPrincipal or IIdentity of type X, ...
    (microsoft.public.dotnet.security)
  • Re: thread?
    ... Any instance members are not guaranteed to be ... > Am I to conclude that the public methods are thread safe and the protected ... your Thread Safety comment was referring to. ...
    (microsoft.public.dotnet.languages.vb)