Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定托管 DLL(C#) 中的 API。VB6.0 等非托管环境能否使用以下 API?
VB6.0 支持这个吗?:一种
public static T CreateObject<T>() where T : new() { return new T(); }
VB6.0 支持这个吗?:B
public static T CreateObject() { return new T(); }
VB 6 中没有泛型之类的东西。此外,COM 不支持,因此您甚至不能通过 VB 6 中的 COM 使用托管 DLL。