Pelle's V12 find errors that the previous version did not find!
All the GetProcAddress calls get an error.
Building Languages.obj.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(79): error #2168: Operands of '=' have incompatible types 'GetSerialNumberProc (aka char * __stdcall (*)())' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(82): error #2168: Operands of '=' have incompatible types 'GetLanguageNameProc (aka char * __stdcall (*)())' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(85): error #2168: Operands of '=' have incompatible types 'GetTitleProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(88): error #2168: Operands of '=' have incompatible types 'GetStringProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(91): error #2168: Operands of '=' have incompatible types 'GetFormatProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(94): error #2168: Operands of '=' have incompatible types 'GetToolTipProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(97): error #2168: Operands of '=' have incompatible types 'GetErrorProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(100): error #2168: Operands of '=' have incompatible types 'GetQuestionProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(103): error #2168: Operands of '=' have incompatible types 'GetInformationProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(106): error #2168: Operands of '=' have incompatible types 'GetWarningProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(109): error #2168: Operands of '=' have incompatible types 'GetStaticTextProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(112): error #2168: Operands of '=' have incompatible types 'GetButtonProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(115): error #2168: Operands of '=' have incompatible types 'GetLanguageProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
*** Error code: 1 ***
Done.
GetToolTip = GetProcAddress(hLanguage,"CFE_GetToolTip") ;
if(GetToolTip)
{
GetError = GetProcAddress(hLanguage,"CFE_GetError") ;
if(GetError)
{
GetQuestion = GetProcAddress(hLanguage,"CFE_GetQuestion") ;
if(GetQuestion)
{
GetInformation = GetProcAddress(hLanguage,"CFE_GetInformation") ;
if(GetInformation)
{
GetWarning = GetProcAddress(hLanguage,"CFE_GetWarning") ;
if(GetWarning)
#ifndef _LANGUAGES_H
#define _LANGUAGES_H
typedef LPSTR (CALLBACK *GetLanguageNameProc)(void) ;
typedef LPSTR (CALLBACK *GetSerialNumberProc)(void) ;
typedef LPSTR (*GetTitleProc)(int) ;
typedef LPSTR (*GetStringProc)(int) ;
typedef LPSTR (*GetFormatProc)(int) ;
typedef LPSTR (*GetToolTipProc)(int) ;
typedef LPSTR (*GetErrorProc)(int) ;
typedef LPSTR (*GetQuestionProc)(int) ;
typedef LPSTR (*GetInformationProc)(int) ;
typedef LPSTR (*GetWarningProc)(int) ;
typedef LPSTR (*GetStaticTextProc)(int) ;
typedef LPSTR (*GetFormatProc)(int) ;
typedef LPSTR (*GetButtonProc)(int) ;
typedef LPSTR (*GetLanguageProc)(int) ;
extern GetSerialNumberProc GetSerialNumber ;
extern GetLanguageNameProc GetLanguageName ;
extern GetTitleProc GetTitle ;
extern GetStringProc GetString ;
extern GetFormatProc GetFormat ;
extern GetToolTipProc GetToolTip ;
extern GetErrorProc GetError ;
extern GetQuestionProc GetQuestion ;
extern GetInformationProc GetInformation ;
extern GetWarningProc GetWarning ;
extern GetStaticTextProc GetStaticText ;
extern GetFormatProc GetFormat ;
extern GetButtonProc GetButton ;
extern GetLanguageProc GetLanguage ;
int Error(int __iErrorNumber) ;
int SpecialError(LPSTR __lpszString) ;
int Warnings(int __iWarningNumber,LPSTR __lpszString) ;
int Questions(int __iQuestionNumber,LPSTR __lpszString) ;
int Informations(int __iInformationNumber,LPSTR __lpszString) ;
LPSTR Formats(int __iFormatsNumber) ;
LPSTR Strings(int __iStringsNumber) ;
LPSTR Buttons(int __iButtonNumber) ;
LPSTR Statics(int __iStaticsNumber) ;
LPSTR ToolTips(int __iToolTipsNumber) ;
LPSTR Titles(int __iTitleNumber) ;
LPSTR Languages(int __iLanguageNumber) ;
void UnLoadLanguageFile(void) ;
int LoadLanguageFile(LPSTR __lpszLanguageFile) ;
#endif /* _LANGUAGES_H */