H
harishashim
I have gone through necessary step and have been able to use a .Net
libraries (created using C#) in VB6. It run good untill I try to use
certain function in the library that is using Int64 type as parameter.
VB6 give the following error
Compile Error:
Function or interface marked as restricted, or the function use an
automation type not supported in Visual Basic.
There must be something that can be done either on C# side or VB6 side.
Please advise.
Here is some code (not exactly but modified here and there)
IN C#
=====================================================
public interface ITesting
{
bool TestConnect(string strc, string usr, string pwd);
void TestDisconnect();
bool Start(bool boolparam);
bool TestCheck(Int64 param1, Int64 param2);
}
//bla bla bla
....
public class Testing : ITesting
{
//bla bla bla
...
public bool TestCheck(Int64 param1, Int64 param2)
{
//bla bla bla
...
}
//bla bla bla
...
}
Thanks in advance,
Haris
libraries (created using C#) in VB6. It run good untill I try to use
certain function in the library that is using Int64 type as parameter.
VB6 give the following error
Compile Error:
Function or interface marked as restricted, or the function use an
automation type not supported in Visual Basic.
There must be something that can be done either on C# side or VB6 side.
Please advise.
Here is some code (not exactly but modified here and there)
IN C#
=====================================================
public interface ITesting
{
bool TestConnect(string strc, string usr, string pwd);
void TestDisconnect();
bool Start(bool boolparam);
bool TestCheck(Int64 param1, Int64 param2);
}
//bla bla bla
....
public class Testing : ITesting
{
//bla bla bla
...
public bool TestCheck(Int64 param1, Int64 param2)
{
//bla bla bla
...
}
//bla bla bla
...
}
Thanks in advance,
Haris