Re: strnicmp

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



In article <1ms1u1pgaq28frqh3o8gdjur5ck180kfqd@xxxxxxx>, David Lowndes wrote:
From: David Lowndes <DavidL@xxxxxxxxxxxxxxx>
Subject: Re: strnicmp
Date: Wed, 01 Feb 2006 17:45:56 +0000
Newsgroups: microsoft.public.vc.language

I'm using the released VS 2005 Pro edition. This is the line I'm compiling:

if ( 0 == strnicmp("localhost",the_tlp_apdu_server.get_hostname(),9))

If I leave it that way, I get:

d:\nist sp 800-73 piv reference implementation 20050625\card reference
implementation\code\piv\refimp\java_card_manager\java_card_manager.cpp(53) :
error C3861: 'strnicmp': identifier not found

Larry,

Both your results seem odd. I've changed a fair few lines of code with
these warnings recently and the normal situation is that you get the
deprecate warning with the older name only.

Can you try a clean test project and see what happens?

If the issue persists, have you got some strange combination of header
files? Have you tried this on a clean machine installation?

Dave

It's a project I got from someone else. I suspect a clean test project would
work as it has for another poster here. So it must have a "strange combination
of header files" but I don't know what that would be :-) Not sure what a "clean
machine installation" is but this was a new recent install of VS 2005 Pro. I've
reported it to Microsoft support but not heard anything back yet.

.



Relevant Pages

  • Re: strnicmp
    ... This is the line I'm compiling: ... deprecate warning with the older name only. ... Can you try a clean test project and see what happens? ...
    (microsoft.public.vc.language)
  • Re: strnicmp
    ... In article, Victor Bazarov wrote: ... >>> _strnicmp. ... Now I get this pretty confusing warning: ...
    (microsoft.public.vc.language)