Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
AnswerRe: FileSystemWatcher to SQL 2005 Pin
ChrisKo8-Oct-07 14:20
ChrisKo8-Oct-07 14:20 
AnswerRe: FileSystemWatcher to SQL 2005 Pin
solutionsville8-Oct-07 15:39
solutionsville8-Oct-07 15:39 
QuestionEdit the Registry keys Name/Type/Data fields. Pin
Dino2Dino8-Oct-07 11:51
Dino2Dino8-Oct-07 11:51 
AnswerRe: Edit the Registry keys Name/Type/Data fields. Pin
Scott Dorman8-Oct-07 12:11
professionalScott Dorman8-Oct-07 12:11 
QuestionRe: Edit the Registry keys Name/Type/Data fields. Pin
Dino2Dino8-Oct-07 13:14
Dino2Dino8-Oct-07 13:14 
AnswerRe: Edit the Registry keys Name/Type/Data fields. Pin
Scott Dorman8-Oct-07 13:23
professionalScott Dorman8-Oct-07 13:23 
GeneralRe: Edit the Registry keys Name/Type/Data fields. Pin
Dino2Dino8-Oct-07 13:30
Dino2Dino8-Oct-07 13:30 
GeneralRe: Edit the Registry keys Name/Type/Data fields. Pin
Dave Kreskowiak8-Oct-07 13:48
mveDave Kreskowiak8-Oct-07 13:48 
Scott is correct. There are not API functions to rename a key or value or change a value type. If you want to rename a key or value, you have to create the new key or value with the correct name and copy the data from the old key/value to the new one, then delete the old one.

The same is true if you want to change the value's type. In this case, though, you can't create a value with the same name, so you have to read the data into a buffer, delete the value, then create the name value with the same name, but different type, then CONVERT THE DATA to the new type and write the new value with it. That conversion is going to give you a headache. Some types just don't convert to others.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Edit the Registry keys Name/Type/Data fields. Pin
Dino2Dino9-Oct-07 10:16
Dino2Dino9-Oct-07 10:16 
GeneralRe: Edit the Registry keys Name/Type/Data fields. Pin
Dave Kreskowiak9-Oct-07 11:47
mveDave Kreskowiak9-Oct-07 11:47 
GeneralRe: Edit the Registry keys Name/Type/Data fields. Pin
Dino2Dino12-Oct-07 10:59
Dino2Dino12-Oct-07 10:59 
AnswerRe: Edit the Registry keys Name/Type/Data fields. Pin
ChrisKo8-Oct-07 14:08
ChrisKo8-Oct-07 14:08 
GeneralRe: Edit the Registry keys Name/Type/Data fields. Pin
Dino2Dino9-Oct-07 10:19
Dino2Dino9-Oct-07 10:19 
QuestionMagnifying glass control needed - recommendations please Pin
ferrour668-Oct-07 11:00
ferrour668-Oct-07 11:00 
AnswerRe: Magnifying glass control needed - recommendations please Pin
TJoe10-Oct-07 8:55
TJoe10-Oct-07 8:55 
Questionconvert image format [modified] Pin
cmarmr8-Oct-07 10:41
cmarmr8-Oct-07 10:41 
AnswerRe: convert image format Pin
Guffa8-Oct-07 12:31
Guffa8-Oct-07 12:31 
GeneralRe: convert image format Pin
cmarmr9-Oct-07 2:38
cmarmr9-Oct-07 2:38 
QuestionComparing type Pin
lsconyer8-Oct-07 9:54
lsconyer8-Oct-07 9:54 
AnswerRe: Comparing type Pin
led mike8-Oct-07 10:01
led mike8-Oct-07 10:01 
AnswerRe: Comparing type Pin
Luc Pattyn8-Oct-07 10:01
sitebuilderLuc Pattyn8-Oct-07 10:01 
AnswerRe: Comparing type Pin
Pete O'Hanlon8-Oct-07 10:11
mvePete O'Hanlon8-Oct-07 10:11 
AnswerRe: Comparing type Pin
Nissim Salomon8-Oct-07 10:19
Nissim Salomon8-Oct-07 10:19 
QuestionFolderBrowserDialog and ThreadStateException Pin
Saamir8-Oct-07 9:42
Saamir8-Oct-07 9:42 
QuestionRe: FolderBrowserDialog and ThreadStateException Pin
TJoe10-Oct-07 8:53
TJoe10-Oct-07 8:53 

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.