Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3610172
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:43:08+00:00 2026-05-18T21:43:08+00:00

how i can convert PWSTR variable to uppercase in vc++ . I googled but

  • 0

how i can convert PWSTR variable to uppercase in vc++. I googled but didn’t get the code sample.

EDITED

What i want to do with PWSTR variable is, a method’s return type is PWSTR. I have to check whether the returned value is equal to string "Y". so whatever comes from return I am trying to UPPER its case then checking.

One more thing I want to know, how to use PWSTR var in if() condition checking.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:43:09+00:00Added an answer on May 18, 2026 at 9:43 pm

    There is _tcsupr_s and friends which should get you in the right direction.

    EDIT:

    Following on from your edit, you don’t need to worry about converting to upper case for you to then do the comparison — you can instead call the case insensitive string comparison function, _tcsicmp (or its friends if you’re not compiling for Unicode) – there is example code if you follow the link, which also explains the importance of having set the correct locale to give the results you’re expecting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we can convert the dictionary to kw using **kw but if I want kw
Is there Java class or some sample code that can convert a java Date
How can I convert a character to its ASCII code using JavaScript? For example:
I can convert RGB values to HSV with the following code... $r = $r/255;
Can i get the source code for a WAMP stack installer somewhere? Any help
How I can convert this math formula to a vectorized MATLAB code? a(i) =
How I can convert this math formula to a vectorized MATLAB code? a(i) =
I can convert from fahrenheit to celcius, but not the other way around. I
I can convert html files to pdfs with iTextSharp using code from Kyle in
I need an encoder that can convert mp3 files to he-aac (aka aac+). So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.