home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************/
- /* */
- /* TurboCAD for Windows */
- /* Copyright (c) 1993 - 2001 */
- /* International Microcomputer Software, Inc. */
- /* (IMSI) */
- /* All rights reserved. */
- /* */
- /******************************************************************/
-
- // RRect.cpp : Defines the initialization routines for the DLL.
- //
-
- #include "stdafx.h"
- #include "RRect.h"
- #include "AutoRect.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CRoundRectApp
-
- BEGIN_MESSAGE_MAP(CRoundRectApp, CWinApp)
- //{{AFX_MSG_MAP(CRoundRectApp)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CRoundRectApp construction
-
- // DUAL_SUPPORT_START
- // GUID for the type library (for registry functions)
- static const GUID LIBID_RoundRect =
- { 0x7724BB42L,0xB671,0x11D0,0x9B,0x3B,0x44,0x45,0x53,0x54,0x00,0x00 };
- // DUAL_SUPPORT_END
-
- CRoundRectApp::CRoundRectApp()
- {
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // The one and only CRoundRectApp object
-
- CRoundRectApp theApp;
-
- /////////////////////////////////////////////////////////////////////////////
- // CRoundRectApp initialization
-
- BOOL CRoundRectApp::InitInstance()
- {
- // Register all OLE server (factories) as running. This enables the
- // OLE libraries to create objects from other applications.
- COleObjectFactory::RegisterAll();
-
- // DUAL_SUPPORT_START
- // make sure the type library is registerd. Otherwise dual interface won't work!
- // note that we are embedding type library as a resource in this DLL.
- AfxOleRegisterTypeLib(AfxGetInstanceHandle(), LIBID_RoundRect);
- // DUAL_SUPPORT_END
-
- return TRUE;
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // Special entry points required for inproc servers
-
- STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
- {
- AFX_MANAGE_STATE(AfxGetStaticModuleState());
- return AfxDllGetClassObject(rclsid, riid, ppv);
- }
-
- STDAPI DllCanUnloadNow(void)
- {
- AFX_MANAGE_STATE(AfxGetStaticModuleState());
- return AfxDllCanUnloadNow();
- }
-
- // by exporting DllRegisterServer, you can use regsvr.exe
- STDAPI DllRegisterServer(void)
- {
- AFX_MANAGE_STATE(AfxGetStaticModuleState());
- COleObjectFactory::UpdateRegistryAll();
- return S_OK;
- }
-