From f04d64869f3b1de54fb343f28f955584780001b8 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Sat, 26 Nov 2011 15:41:10 +0000 Subject: Project folders rename part 3 git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@215 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- secureim/rtfconv.cpp | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 secureim/rtfconv.cpp (limited to 'secureim/rtfconv.cpp') diff --git a/secureim/rtfconv.cpp b/secureim/rtfconv.cpp deleted file mode 100644 index 271e62a..0000000 --- a/secureim/rtfconv.cpp +++ /dev/null @@ -1,46 +0,0 @@ -#include "commonheaders.h" - - -HINSTANCE hRtfconv = NULL; -RTFCONVSTRING pRtfconvString = NULL; - - -BOOL load_rtfconv () { - - hRtfconv = LoadLibrary( "rtfconv.dll" ) ; - if ( hRtfconv == NULL ) { - hRtfconv = LoadLibrary( "plugins\\rtfconv.dll" ) ; - if ( hRtfconv == NULL ) - return FALSE; - } - - pRtfconvString = (RTFCONVSTRING) GetProcAddress( hRtfconv, "RtfconvString" ) ; - if ( pRtfconvString == NULL ) { - FreeLibrary( hRtfconv ) ; - return FALSE; - } - - return TRUE; -} - -void free_rtfconv () { - - if ( hRtfconv ) - FreeLibrary( hRtfconv ) ; - pRtfconvString = NULL; - hRtfconv = NULL; -} - - -void rtfconvA(LPCSTR rtf, LPWSTR plain) { - - pRtfconvString( rtf, plain, 0, 1200, CONVMODE_USE_SYSTEM_TABLE, (strlen(rtf)+1)*sizeof(WCHAR) ); -} - - -void rtfconvW(LPCWSTR rtf, LPWSTR plain) { - - pRtfconvString( rtf, plain, 0, 1200, CONVMODE_USE_SYSTEM_TABLE, (wcslen(rtf)+1)*sizeof(WCHAR) ); -} - -// EOF -- cgit v1.2.3