Re: Compile LibThotEditor un der WIndows 95

Hi,
These warning messages are not a problem. They are dur to the 
use of an undeclared function. The compiler assume that it is
an external function (generally true) and returning int (because
if you don't specify a type for a function, the compiler supposes
that it returns a value of type int.

Ramzi.

>Hi  Ramzi,
>I tried to compile the library LibTHotEditor under Windows 95 and I remark
>that there is a lot
>of warnings especially undefined functions. For example, 
>
>dialogapi.c
>C:\users\Thotlib\Dialogue\dialogapi.c(478) : warning C4090: 'initializing'
>: different 'const' qualifiers
>C:\users\Thotlib\Dialogue\dialogapi.c(937) : warning C4013: 'main'
>undefined; assuming extern returning int
>C:\users\Thotlib\Dialogue\dialogapi.c(3057) : warning C4047: 'function' :
>'const char *' differs in levels of indirection from 'char (*)[200]'
>C:\users\Thotlib\Dialogue\dialogapi.c(3057) : warning C4024: 'AppendMenuA'
>: different types for formal and actual parameter 4
>C:\users\Thotlib\Dialogue\dialogapi.c(3162) : warning C4047: 'function' :
>'unsigned int ' differs in levels of indirection from 'void *'
>C:\users\Thotlib\Dialogue\dialogapi.c(3162) : warning C4024:
>'EnableMenuItem' : different types for formal and actual parameter 2
>C:\users\Thotlib\Dialogue\dialogapi.c(3217) : warning C4047: 'function' :
>'unsigned int ' differs in levels of indirection from 'void *'
>
>C:\users\Thotlib\View\windowdisplay.c(201) : warning C4013:
>'WIN_GetDeviceContext' undefined; assuming extern returning int
>C:\users\Thotlib\View\windowdisplay.c(208) : warning C4013:
>'WIN_ReleaseDeviceContext' undefined; assuming extern returning int
>C:\users\Thotlib\View\windowdisplay.c(291) : warning C4013: 'WinLoadGC'
>undefined; assuming extern returning int
>C:\users\Thotlib\View\windowdisplay.c(293) : warning C4013: 'WinLoadFont'
>undefined; assuming extern returning int
>C:\users\Thotlib\View\windowdisplay.c(295) : warning C4013: 'WinUnloadGC'
>undefined; assuming extern returning int
>C:\users\Thotlib\View\windowdisplay.c(1467) : warning C4013: 'WinErrorBox'
>undefined; assuming extern returning int
>C:\users\Thotlib\View\windowdisplay.c(1724) : warning C4101: 'pat' :
>unreferenced local variable
>
>
>I would like you help me to solve these problems.
>
>Best regards

Received on Friday, 6 February 1998 10:05:36 UTC