home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-08-27 | 822 b | 36 lines |
- // Create a DAO DBEngine object with the license
-
- import dao3032._DBEngine;
- import com.ms.com.*;
-
- public class dao_dbengine
- {
- // The static public method creates the DBEngine object
- static public _DBEngine create()
- {
- // The return value
- _DBEngine result;
-
- // Create the License Manager object
- ILicenseMgr mgr = new LicenseMgr();
-
- // Use the License Manager to create the DBEngine
- result = (_DBEngine) mgr.createWithLic(
-
- // The license key for the DAO DBEngine
- "mjgcqcejfchcijecpdhckcdjqigdejfccjri",
-
- // The CLSID for the DAO DBEngine
- "{00025E15-0000-0000-C000-000000000046}",
-
- // The aggregation IUnknown* punkOuter
- null,
-
- // The ctxFlag to create in inproc server
- ComContext.INPROC_SERVER
- );
-
- return result;
- }
- }
-