all groups > dotnet interop > july 2003 >
You're in the

dotnet interop

group:

Calling .NET Shared Functions from ASP


Calling .NET Shared Functions from ASP Christopher Pragash
7/29/2003 4:32:27 PM
dotnet interop:
Hello all,

I'm in the process of migrating a set of business objects from VB to VB.NET.
These business objects are actually used by ASP.

Question: If I had a shared method in one of the business objects that
returned the instance of the object, can I call it from ASP? Something like
the following?

Set oTk = TK.clsTK.SharedFunction

COM usually dosent understand the third dot (.), does the COM Callable
wrapper make this possible?

Thanks,
Chris


Re: Calling .NET Shared Functions from ASP Mattias Sjögren
7/29/2003 11:34:32 PM
Christopher,

[quoted text, click to view]

No, shared methods aren't exported to COM. In this case it would be
better to provide a factory class with an instance method that returns
the object.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
AddThis Social Bookmark Button