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
    135

    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
    Join Date
    Dec 2012
    Location
    England
    Posts
    2,265

    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.

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

    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
    17,277

    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
    Join Date
    Dec 2012
    Location
    England
    Posts
    2,265

    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.

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center