home *** CD-ROM | disk | FTP | other *** search
- // exports.cpp: exported functions
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "xref.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
-
- extern CXrefApp theApp;
-
- //////////////////////////////////////////////////////////////////////
- _declspec( dllexport ) BOOL XREF_Init(void)
- {
- #ifdef _AFXDLL
- AFX_MANAGE_STATE(AfxGetStaticModuleState()); // Call this when using MFC in a shared DLL
- #endif
- return theApp.Init();
- }
-
- _declspec( dllexport ) BOOL XREF_GetXref(LPCSTR LocalFile,
- LPCSTR xref,
- char *Answer,
- int Answersize)
- {
- #ifdef _AFXDLL
- AFX_MANAGE_STATE(AfxGetStaticModuleState()); // Call this when using MFC in a shared DLL
- #endif
- return theApp.GetXref(LocalFile, xref, Answer, Answersize);
- }
-
- _declspec( dllexport ) void XREF_DeInit(void)
- {
- #ifdef _AFXDLL
- AFX_MANAGE_STATE(AfxGetStaticModuleState()); // Call this when using MFC in a shared DLL
- #endif
- theApp.DeInit();
- }
-