更改数据库使用的每数据库底层的类工厂函数使之支持不同的类工厂策略。
Change the class factory function a database USES on a per-database basis to support different class factory policy.
唯一可靠的方法就是也出口类工厂函数,一个简单的函数,使用新的操作符来创建对象并返回的指针。
The only reliable way to do it is to also export a class factory function, a simple function that USES the new operator to create the object and return the pointer.
可以仅仅直接使用相应类的构造函数,而不用通过工厂类。
You can just use a constructor for the appropriate class directly, without going through a factory class.
此函数让客户端感知实现类工厂的模块。为什么这样做呢?
This function lets the client keep alive the module that implements the class factory object.
第一个类使用构造函数初始化属性,第二个类使用静态工厂方法。
The first class USES a constructor to initialize the properties, and the second class USES a static factory method.
对象的代码不再需要了,然而依然存在用COM库函数注册过的类工厂对象。
The object's code is not needed anymore, even if it still has its class factories registered with the COM libraries.
对象的代码不再需要了,然而依然存在用COM库函数注册过的类工厂对象。
The object's code is not needed anymore, even if it still has its class factories registered with the COM libraries.
应用推荐