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

  • SEARCH
  • Home
  • 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 8602747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:09:36+00:00 2026-06-12T02:09:36+00:00

i have a STR16 (psString) that i want to add too. something like this:

  • 0

i have a STR16 (psString) that i want to add too.

something like this:

sprintf(psString,"%s 500 Left",psString);

but VS says STR16 is incompatible with sprintf

what’s a way i can modify this STR16 and end up a STR16 ?

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-06-12T02:09:38+00:00Added an answer on June 12, 2026 at 2:09 am

    Use swprintf instead, since it deals with 16-bit wide characters rather than 8-bit characters. Windows provides a similar version called wsprintf. You can also use _stprintf and the preprocessor will convert it either 8 or 16 bit-wide characters based on the TCHAR definition.

    Note that this function is considered unsafe. The wsprintf link above contains information on potential replacements, such as StringCbPrintfEx .

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

Sidebar

Related Questions

I have a string that looks like this: str = 751CEC132EB348978013CE7AF8375137 It is 32
I have a String that looks like this <34>Any Character ] <23>Any Character ]
Like if I have a string like str1 = IWantToMasterPython If I want to
I have a situation like this. I have a list of urls in a
I have strings that all have different lengths. e.g. str1 = This is new
I have a string: str1 <- This is a string, that I've written to
i have a string like this : NSString *str =@text |0|1|5|this is an other
I have my code like this: if ( $var eq str1 || $var eq
I have a JAX-WS WebService like this: public class ParentClass{ public String str1; }
I have several strings that are being combined to make a URI. I want

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.