-
January 18th, 2014, 05:46 AM
#1
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 ?
-
January 18th, 2014, 06:57 AM
#2
Re: Simple query about String comparison ..
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
January 19th, 2014, 11:28 PM
#3
Re: Simple query about String comparison ..
Thanks 2kaud sir .. Have read and studied it.
-
January 20th, 2014, 05:08 AM
#4
Re: Simple query about String comparison ..
Originally Posted by new_2012
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
-
January 20th, 2014, 08:05 AM
#5
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)
-
January 20th, 2014, 08:08 AM
#6
Re: Simple query about String comparison ..
Originally Posted by zahidcoder
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. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|