Hi there!
I'm using a COM component from my C# application and I can't get it to work
properly. I get a COMException (Invalid procedure call or argument) on this
line :
//***
ArbreSaisieClass as = new ArbreSaisieClass();
bool bSubLevel = true;
bool bValid = false;
bool bCalcPrice = false;
// the exception is raised on this line...
bool bRet = as.root.Revalidate(ref bSubLevel, ref bValid, ref bCalcPrice,
true);
//***
here's the original vb signature of the Revalidate function() :
'***
Public Function Revalidate _
( _
Optional ByRef bSubLevel As Boolean = False _
Optional ByRef bValid As Boolean = True _
Optional ByRef bCalcPrice As Boolean = True_
Optional ByVal bWithMessage As Boolean = True _
) As Boolean
'***
Any thoughts on the problem? True in VB is -1 whilst true in C# equals 1.
There may be something to do in order to pass a "good" value...
--
Best Regards
Yanick Lefebvre
Please posts answers to the group so all can benefit