I have 2 log method overloaded in a VB.Net COM.
____________________________________________________________
Public Sub log(ByVal type As Integer, ByVal msg As String)
Public Sub log(ByVal type As Integer, ByVal msg As String, ByVal ParamArray args() As String)
_____________________________________________________________
I can referecne it and call both log functions successfully in another .Net Application.
-------------------------------------------------------------------------------------
logptr.log((int)CLog.LogTypes.LOG_TRACE, "anyone?");
logptr.log((int)CLog.LogTypes.LOG_TRACE, "What", "happened?");
logptr.log((int)CLog.LogTypes.LOG_TRACE, "Please", "help !!!!", "it's urgent");
--------------------------------------------------------------------------------
But, when i try to call the same method in VC++6. Compile error occured. Saying that ------ "log' : function does not take 3 parameters"
Anyone knows what happened ? Please help
Mattias Sj?gren - 20 Jul 2004 11:34 GMT
>Anyone knows what happened ? Please help
COM doesn't support overloading. Each method is exported with a
distinct name.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.