Simple query about String comparison ..
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Simple query about String comparison ..

  1. #1
    Join Date
    Jan 2012
    Location
    India
    Posts
    193

    Simple query about String comparison ..

    Hi ,

    I am using Unicode in my MFC SDI project.

    I need String Comparison.

    I have used functions : _tcsncmp and _tcslen.

    The program works fine.

    I want to ask is there any other method to compare strings ?

  2. #2
    2kaud's Avatar
    2kaud is online now Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    4,352

    Re: Simple query about String comparison ..

    Have a look in the 'See Also' section at the end of
    http://msdn.microsoft.com/en-us/library/eywx8zcx.aspx
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
    C, C++ Compiler: Microsoft VS2015

  3. #3
    Join Date
    Jan 2012
    Location
    India
    Posts
    193

    Re: Simple query about String comparison ..

    Thanks 2kaud sir .. Have read and studied it.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    18,656

    Re: Simple query about String comparison ..

    Quote Originally Posted by new_2012 View Post
    Hi ,
    I am using Unicode in my MFC SDI project.
    I need String Comparison.
    I have used functions : _tcsncmp and _tcslen.
    ...
    I want to ask is there any other method to compare strings ?
    If you are using MFC, why do you ignore CString class?
    Victor Nijegorodov

  5. #5
    Join Date
    Jan 2014
    Posts
    1

    Lightbulb Re: Simple query about String comparison ..

    This code can be used to change the color of the date in Crystal Report 8.0
    if {RepTab.RTGSDate} = DateTime (1900, 01, 01,00, 00, 00) then color(255,255,255) else color(44,24,168)

  6. #6
    2kaud's Avatar
    2kaud is online now Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    4,352

    Re: Simple query about String comparison ..

    Quote Originally Posted by zahidcoder View Post
    This code can be used to change the color of the date in Crystal Report 8.0
    if {RepTab.RTGSDate} = DateTime (1900, 01, 01,00, 00, 00) then color(255,255,255) else color(44,24,168)
    And this relates to c++ string comparision how?????
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
    C, C++ Compiler: Microsoft VS2015

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


HTML5 Development Center