/*------------------------------------------------------------------------------*
 *	File Name: 	ocn.h															*
 *	Purpose:	utility functions in oCntrls dll								*
 *	Author:		CPY																*
 *  Date:		5-15-07 														*
 *  Copyright OriginLab Corp. 2000-2006											*
 *------------------------------------------------------------------------------*/

#ifndef _OCN_H
#define _OCN_H

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the OCUTILS_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// OCUTILS_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.

#ifdef __AFX_H__

	#ifdef O_CNTRL_DLL
		#define OCN_API __declspec(dllexport)
	#else
		#define OCN_API __declspec(dllimport)
	#endif

	#include "OCtoVC.h"
	extern "C" {
		///////////////////////////////////////////////////////////////////////
		// the following functions are used in VC level only
		///////////////////////////////////////////////////////////////////////

		///////////////////////////////////////////////////////////////////////
		// end VC level functions
		///////////////////////////////////////////////////////////////////////


#else
	#define OCN_API
	#pragma dll(oCntrls)	// Associate all functions below to oCntrls.dll which must be in the Origin EXE folder

#endif	//__AFX_H__

/**$
*/
OCN_API BOOL process_err_msg_from_event(LPCSTR lpcszTagName, LPCSTR lpcszErrMsg, HWND hWndDlg, string* pstrLastSenderName, BOOL bAutoClearMsg);


#ifdef __AFX_H__
	}  // end extern "C"
#endif	//__AFX_H__

#endif //_OCN_H
