From 2239ec8e6a04864ccd5c8ca2957490da30131be1 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 20 Jul 2018 08:07:24 +0000 Subject: [PATCH] Include : - aggiornamento prototipi - aggiunto include per puntatori a funzione generali. --- EGkDllMain.h | 3 +++ EXeExecutor.h | 3 +-- EgtFunPtrType.h | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 EgtFunPtrType.h diff --git a/EGkDllMain.h b/EGkDllMain.h index 0be5cf3..170108f 100644 --- a/EGkDllMain.h +++ b/EGkDllMain.h @@ -13,6 +13,7 @@ #pragma once +#include "/EgtDev/Include/EgtFunPtrType.h" #include class ILogger ; @@ -40,3 +41,5 @@ EGK_EXPORT void InitFontManager( const std::string& sNfeFontDir, const std::stri EGK_EXPORT const std::string& GetNfeFontDir( void) ; // restituisce il nome del font di default EGK_EXPORT const std::string& GetDefaultFont( void) ; +// imposto il gestore eventi +EGK_EXPORT bool SetEGkProcessEvents( pfProcEvents pFun) ; \ No newline at end of file diff --git a/EXeExecutor.h b/EXeExecutor.h index 3e9b6e1..380b497 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -18,6 +18,7 @@ #include "/EgtDev/Include/EGkPolyLine.h" #include "/EgtDev/Include/EGkPolyArc.h" #include "/EgtDev/Include/EGkSelection.h" +#include "/EgtDev/Include/EgtFunPtrType.h" #define NOMINMAX #include #undef GetClassName @@ -55,10 +56,8 @@ EXE_EXPORT bool ExeGetOsInfo( std::string& sOs) ; EXE_EXPORT bool ExeGetCpuInfo( std::string& sCpu) ; EXE_EXPORT bool ExeGetMemoryInfo( std::string& sMem) ; EXE_EXPORT bool ExeOutLog( const std::string& sMsg) ; -typedef int (__stdcall * pfProcEvents) (int, int) ; EXE_EXPORT bool ExeSetProcessEvents( pfProcEvents pFun) ; EXE_EXPORT int ExeProcessEvents( int nProg, int nPause) ; -typedef bool (__stdcall * pfOutText) ( const std::string&) ; EXE_EXPORT bool ExeSetOutText( pfOutText pFun) ; EXE_EXPORT bool ExeOutText( const std::string& sText) ; EXE_EXPORT bool ExeSetTempDir( const std::string& sTempDir) ; diff --git a/EgtFunPtrType.h b/EgtFunPtrType.h new file mode 100644 index 0000000..fe4c6dd --- /dev/null +++ b/EgtFunPtrType.h @@ -0,0 +1,20 @@ +//---------------------------------------------------------------------------- +// EgalTech 2018-2018 +//---------------------------------------------------------------------------- +// File : EgtFunPtrType.h Data : 19.07.18 Versione : 1.9g2 +// Contenuto : Dichiarazione tipi puntatori a funzione. +// +// +// +// Modifiche : 19.07.18 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +#pragma once + +#include + +//---------------------------------------------------------------------------- +typedef int (__stdcall * pfProcEvents) (int, int) ; +typedef bool (__stdcall * pfOutText) ( const std::string&) ;