Click here to Skip to main content
15,902,839 members
Home / Discussions / C#
   

C#

 
GeneralRe: Build An Assembly Pin
razanabanu6-Mar-08 1:31
razanabanu6-Mar-08 1:31 
GeneralRe: Build An Assembly Pin
Pete O'Hanlon6-Mar-08 1:57
mvePete O'Hanlon6-Mar-08 1:57 
GeneralRe: Build An Assembly Pin
Lutosław6-Mar-08 6:54
Lutosław6-Mar-08 6:54 
GeneralDifferences in Invoke() Pin
stancrm6-Mar-08 0:46
stancrm6-Mar-08 0:46 
GeneralRe: Differences in Invoke() Pin
Robert Rohde6-Mar-08 1:24
Robert Rohde6-Mar-08 1:24 
GeneralInvalidOperationException Pin
satheesh.yuva6-Mar-08 0:32
satheesh.yuva6-Mar-08 0:32 
GeneralRe: InvalidOperationException Pin
Gareth H6-Mar-08 2:08
Gareth H6-Mar-08 2:08 
GeneralREG_SZ String Value Pin
mjmim6-Mar-08 0:24
mjmim6-Mar-08 0:24 
Hey guys,
I am writing a program that works with the registry.
I have the following problem when I want to read REG_SZ values. I don't know how to separate the values correctly.

Example:
Key - HKEY_LOCAL_MACHINE\Software\Classes\AviFile\Shell\Play\Command
ValueName - (Default)
C:\Program Files\Windows Media Player\wmplayer.exe /prefetch:8 /Play "%L"
Might appear also as
"c:\program files\windows\media player\wmplayer.exe" /prefetch:8 /Play "%L"

If I split the string using '"' or ' ' it won't work in all of the cases.
It's not like with parsing command line arguments where you know that a path with spaces in it will have the correct punctuation.

How does microsoft know how to parse these strings correctly?
GeneralRe: REG_SZ String Value Pin
led mike6-Mar-08 4:49
led mike6-Mar-08 4:49 
GeneralRe: REG_SZ String Value Pin
mjmim6-Mar-08 12:02
mjmim6-Mar-08 12:02 
Questionc# matrix problem Pin
nrg2225-Mar-08 23:25
nrg2225-Mar-08 23:25 
GeneralRe: c# matrix problem Pin
Christian Graus5-Mar-08 23:51
protectorChristian Graus5-Mar-08 23:51 
GeneralWrapper Creation Pin
Rahul.RK5-Mar-08 23:21
Rahul.RK5-Mar-08 23:21 
GeneralCross Post Pin
led mike6-Mar-08 4:51
led mike6-Mar-08 4:51 
General[Message Deleted] Pin
mohit ag5-Mar-08 23:06
mohit ag5-Mar-08 23:06 
GeneralRe: check for special charachter Pin
Christian Graus5-Mar-08 23:21
protectorChristian Graus5-Mar-08 23:21 
GeneralRe: check for special charachter Pin
Giorgi Dalakishvili5-Mar-08 23:24
mentorGiorgi Dalakishvili5-Mar-08 23:24 
GeneralRe: check for special charachter Pin
Christian Graus5-Mar-08 23:49
protectorChristian Graus5-Mar-08 23:49 
GeneralRe: check for special charachter Pin
Pete O'Hanlon6-Mar-08 5:18
mvePete O'Hanlon6-Mar-08 5:18 
GeneralAutomatic Properties Pin
GChannon5-Mar-08 22:58
GChannon5-Mar-08 22:58 
GeneralRe: Automatic Properties Pin
Christian Graus5-Mar-08 23:04
protectorChristian Graus5-Mar-08 23:04 
GeneralRe: Automatic Properties Pin
Robert Rohde6-Mar-08 1:18
Robert Rohde6-Mar-08 1:18 
GeneralRe: Automatic Properties Pin
GChannon6-Mar-08 1:20
GChannon6-Mar-08 1:20 
GeneralRe: Automatic Properties Pin
Pete O'Hanlon6-Mar-08 1:59
mvePete O'Hanlon6-Mar-08 1:59 
GeneralRe: Automatic Properties Pin
MaxRelaxman6-Mar-08 3:09
MaxRelaxman6-Mar-08 3:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.