Re: How do I get rid of C4005 warning!!!

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"JR" <JR@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:AC80327F-9B7E-438B-9A51-94632186DA6E@xxxxxxxxxxxxxxxx
BTW: this is using VS 2003

"JR" wrote:

How the heck can I rid my solution(s) of the following compile warning:

warning C4005: 'UNICODE' : macro redefinition


Don't redefine the macro! ;-)

Seriously, though, if you have your project settings (configuration properties/general) set to "Use Unicode Character Set" then _UNICODE and UNICODE should be defined on the compiler command line. There's no reason to define it explicitly in your code.

Mark

--
Mark Salsbery
Microsoft MVP - Visual C++



I've tried everything that I've been able to find on-line, but these warning
just do NOT go away. I am pretty sick of them.

.



Relevant Pages

  • Re: Python 2.5 and Unicode on MacOS
    ... failed to convert both arguments to Unicode - interpreting them as being ... BeautifulSoup now fails its unit tests, citing the same warning. ... For reference, I have done a framework build of Python, and it seems to ...
    (comp.lang.python)
  • Re: newbie problem; wierd "Hello World" MessageBox output
    ... I had compiled some sample projects that ... Unicode ...", ... in my second post (I hadn't noticed them ... I did get warning C4133: ...
    (microsoft.public.vstudio.general)
  • Malformed utf8; wheres the null byte coming from?
    ... I've spent some time trying to understand Perl's Unicode support and ... if the regex string was being upgraded to Unicode ... still shouldn't cause this warning. ... there's more going on under the surface than just an extra iso-latin-1 ...
    (comp.lang.perl.misc)
  • Re: Journey into Unicode
    ... and the EXE crashes with exception handling at NTDLL.dll. ... Are there more settings for Unicode DLL projects? ... The warning could be due to me exporting the class using the macro ...
    (microsoft.public.vc.mfc)
  • Re: creating 16-bit unicode filename in OpenVMS7.3-2
    ... > I am new to OpenVMS, I desperatly need help in creating 16-bit unicode ... > filename in OpenVMS7.3-2 ... Exactly which part of (warning: ...
    (comp.os.vms)