P
Peter
Hi,
My C# application is supposed to cooperate with legacy VB6
code, but I am little bit worried if and how far C# strings,
double etc. in the method interfaces will work smoothly from
VB6 code.
In VB6 code below an array of string "params" is passed to
the C# method SetParameters.
VB6:
Dim params(4) As String
params(0)="home"
params(1)="sweet"
params(2)="home"
Set myClass = new MyClass()
myClass.SetParameters(params)
C#:
public MyClass
{
( ..)
public void SetParameters(string[] pars)
{
(..)
}
}
And how can I add this VB6 code to my (C#) .NET solution
project. It seems I can only add C# code (classes etc.) to
my solution.
Some help would be nice.
Thanks,
Peter
My C# application is supposed to cooperate with legacy VB6
code, but I am little bit worried if and how far C# strings,
double etc. in the method interfaces will work smoothly from
VB6 code.
In VB6 code below an array of string "params" is passed to
the C# method SetParameters.
VB6:
Dim params(4) As String
params(0)="home"
params(1)="sweet"
params(2)="home"
Set myClass = new MyClass()
myClass.SetParameters(params)
C#:
public MyClass
{
( ..)
public void SetParameters(string[] pars)
{
(..)
}
}
And how can I add this VB6 code to my (C#) .NET solution
project. It seems I can only add C# code (classes etc.) to
my solution.
Some help would be nice.
Thanks,
Peter