Sure man , but bear with me cos my VB suck,
lets say that you build a Dll library with .NET called Test and contains 2
classes class1 and class 2 be carfull there is a option in vs.NET that allow
your dll to have com interoptability and produces a tlb file as well as a
dll, after you build your dll run cmd (Command prompt) and run regasm for
your tlb and dll, this will finish the NET part.
Now in the vb6 do:
Dim obj as Object
set obj = CreateObject("Test","Class1")
now this object obj has the methods and attributes of the Class1 class in
the Test dll, but if you type:
obj.Start() if the method Start exist, cos when you press the dot you will
NOT have a list of the available methods and attributes, it will run the
method and if doesn't exist it will NOT produce an error.
Hope that helps
> Can you expand some please ?
Nassos - 27 Jun 2005 09:18 GMT
here is a microsoft link for making a NET dll and call it as COM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/c
allnetfrcom.asp
CU
> Sure man , but bear with me cos my VB suck,
> lets say that you build a Dll library with .NET called Test and contains 2
[quoted text clipped - 13 lines]
>>
>> Can you expand some please ?
dbraithwaite@lkuk.co.uk - 28 Jun 2005 10:46 GMT
Thanks for the help.
In the end, I decided to ditch C# and go back to good old (unmanaged)
C++ as an ATL server. I've implemented pretty much all I specified in
the post.