Re: How to allow Warning level about from 'unsigned char *' to 'const char *'
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
um wrote:
>
> Most probably there are header file version differences. For example
> one uses older VC98 include files, and the other has either newer
> include files and/or has additionally the Platform SDK installed,
which
> replaces some older include files. In newer include files the type
checks
> are stronger.
That won't solve the problem : char and unsigned char are intrinsic,
compiler defined types. Headers files are not involved in their
definition.
Arnaud
MVP - VC
.
Relevant Pages
- Re: accessing memory addresses using C
... in emebdded world here) then I keep this address in a header file, ... typically in the private part of a class, ... If this is a memory ... It is undefined what is the unsigned char. ... (comp.dsp) - Re: VC++ .NET 2005 prepending underscore to external functions references
... The path to the library and DLL has been included as well. ... And here's a snippet from the header file of the said DLL: ... int __stdcall Prn_Setfont(unsigned char Fonttype, unsigned char Wide, unsigned char High); ... The brute force fix would be to rebuild the DLL with a module definition file in which you tag every export with two names ... (microsoft.public.vc.ide_general) - Re: Global variables
... static unsigned char v2; ... Then include the header file in some unit. ... extern unsigned char v1; ... (comp.lang.c) - Re: Global variables
... static unsigned char v2; ... Then include the header file in some unit. ... program could refer to it with `extern char v1;'), ... but since they have internal linkage they are distinct ... (comp.lang.c) - Re: VC++ .NET 2005 prepending underscore to external functions references
... And here's a snippet from the header file of the said DLL: ... int __stdcall Prn_Setfont(unsigned char Fonttype, unsigned char Wide, unsigned char High); ... In my function calls in main, I just the call the functions as they are named in the header file. ... If the sources are the same, if the extensions of the files are the same, if the declarations are the same - both or neither use extern "C", both or neither use WINAPI ... ... (microsoft.public.vc.ide_general) |
|