yeh, if you write the wrapper to be CLI compliant then it should be accessible though-out all .NET languages because they all run on the CLR.

If you can get unmanaged code into C#, then getting the C# into VB should be no problem, you don't have to worry about marshalling etc.

I agree that Var shouldn't change and if you really want to use ints and floats implicitly then you can write your own helper method/macro.

I think this would work...

Code:
public void SetVar(ref Var sender, object value)
        {
            if(value.GetType() == typeof(int))
            {
                sender.IntValue = (int)value;
            }
            if (value.GetType() == typeof(float))
            {
                sender.FloatValue = (float)value;
            }
        }



Last edited by DJBMASTER; 07/27/09 17:23.