Articles

Solved I have to re-type the qoutes

December 4, 2012 at 04:13:17
Specs: SVR 2003 SP3, 4ghz

I am trying to understand why I must re-type the single or double qoutes in order for code snipplets that I copy to work.

Thanks in advance for any help given!


See More: I have to re-type the qoutes

Report •


#1
December 4, 2012 at 04:42:11

A bit difficult to answer without seeing what code snippets you are referring to. Or what programming language you are using. Or any details at all.

Report •

#2
December 7, 2012 at 23:57:34

Sorry for not getting to this question, however being human. The command would look something like this. However where the double qoutes are, they would look like inverted commas “ ” . The below command works, but if the double qoutes are replaced with these “ ” the command would fail.

REG ADD ''HKLM\path\to\registry\key'' /v RegistryValue /t REG_MULTI_SZ /d "abc\0\0def\0"


Report •

#3
December 8, 2012 at 05:10:45
✔ Best Answer

The inverted commas that you show are not valid characters in a C source file (or most other languages). You have to use the double-quotes character " (shifted 2 on my keyboard).

Report •

Related Solutions

#4
December 8, 2012 at 09:01:05

Simple answer: The angled double quotes (“ ”) are not considered real double quotes. You have to type them in because whoever wrote the document you're copy/pasting from has the smart quotes feature enabled in Word.

How To Ask Questions The Smart Way


Report •


Ask Question