Given an API in a managed DLL(C#). Can an unmanaged environment such as VB6.0 able to use the following APIs?
Do VB6.0 supports this? :A
public static T CreateObject<T>() where T : new()
{
return new T();
}
Do VB6.0 supports this? :B
public static T CreateObject()
{
return new T();
}
There’s no such thing as generics in VB 6. Also, COM doesn’t support that, so you can’t even use the managed DLL via COM in VB 6.