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 3808574
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:10:08+00:00 2026-05-19T15:10:08+00:00

I’ve been fooling with the MSVC 2008 immediate window for the last few hours

  • 0

I’ve been fooling with the MSVC 2008 immediate window for the last few hours and I’m flabbergasted with both myself and Microsoft… It probably doesn’t help that I stumbled on this mystery at bedtime and it’s now 6 hours later. 🙂

Please see the following:

? "1234567\\87654321\\"
CXX0026: Error: bad format string

I’ve tried the above several ways in the immediate window and… Nothing. No amount of backslashes gets rid of the error. Removing the backslashes is the only way to solve it.

Does the expression evaluator have something against double backslash in a wide string?

For what it’s worth, the immediate window fooling was motivated by the following:
Line 107 is:
size_t endpos = str.find_last_not_of( L”\\/” );

file.cpp(107) : error C2017: illegal escape sequence
file.cpp(107) : error C2017: illegal escape sequence
file.cpp(107) : error C2065: 'L”' : undeclared identifier
file.cpp(107) : error C2065: '”' : undeclared identifier

My questions are:

  • What’s up with the 4 errors on line 107?
  • What’s up with the immediate window? I remember this kind of thing working there a year or so ago. I applied a service pack to MSVC 2008 about 6 months ago but I didn’t use it heavily until now.
    • 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-19T15:10:08+00:00Added an answer on May 19, 2026 at 3:10 pm
      size_t endpos = str.find_last_not_of( L”\\/” );  // no
      size_t endpos = str.find_last_not_of( L"\\/" );  // yes
      

      Beware of code that you copied off a website, maybe a blog post. The author may well have used a word processor, one that implements ‘smart quotes’. If you look closely at the first and the second line you’ll see the difference. Your compiler will only like the straight double-quotes.

      It doesn’t quite explain your problem with the Immediate Window, it works when I try your string as shown. Maybe it doesn’t quite look like it either.

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

    Sidebar

    Related Questions

    I have a jquery bug and I've been looking for hours now, I can't
    link Im having trouble converting the html entites into html characters, (&# 8217;) i
    I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
    I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
    I am writing an app with both english and french support. The app requests
    That's pretty much it. I'm using Nokogiri to scrape a web page what has
    I have just tried to save a simple *.rtf file with some websites and
    I want to count how many characters a certain string has in PHP, but
    I would like to count the length of a string with PHP. The string
    For some reason, after submitting a string like this Jack’s Spindle from a text

    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.