Changes

Windows Registry VB6

1,727 bytes added, 13:36, 2 February 2008
/* Setting Registry Info */
The following lines were added (+) and removed (-):
Step 3:<BR>Usage.Here are some usage examples:=== Retreiving Registry Info ===  <nowiki>'REGISTRY: load default storybook open path</nowiki>  <nowiki>strRetval = modREgKeYmAker.GetSettingEx(HKEY_CURRENT_USER, "Software\My Software Name\s2album", "DefaultStorybookPath")</nowiki>  <nowiki>If strRetval = "" Then strStorytelling = strMyDocuments & "\EA Games\The Sims 2\Storytelling" Else strStorytelling = strRetval</nowiki>  <nowiki>  </nowiki>  <nowiki>'REGISTRY: SetDefaultToLastUsedPath</nowiki>  <nowiki>strRetval = modREgKeYmAker.GetSettingEx(HKEY_CURRENT_USER, "Software\My Software Name\s2album", "SetDefaultToLastUsedPath")</nowiki>  <nowiki>If strRetval = "True" Then blnSetDefaultToLastUsedPath = True Else blnSetDefaultToLastUsedPath = False</nowiki>  <nowiki>'REGISTRY: LoadImageCacheWarning is for strShowICWOption and blnShowICW</nowiki>  <nowiki>strRetval = modREgKeYmAker.GetSettingEx(HKEY_CURRENT_USER, "Software\My Software Name\s2album", "LoadImageCacheWarning")</nowiki>  <nowiki>If strRetval = "" Then strShowICWOption = "True" Else strShowICWOption = strRetval</nowiki>  <nowiki>If strShowICWOption = "True" Then blnShowICW = True Else blnShowICW = False</nowiki>=== Setting Registry Info ===  <nowiki>modREgKeYmAker.SaveSettingEx HKEY_CURRENT_USER, "Software\My Software Name\s2album", "DefaultStorybookPath", strStorytelling</nowiki>  <nowiki></nowiki>  <nowiki>modREgKeYmAker.SaveSettingEx HKEY_CURRENT_USER, "Software\My Software Name\s2album", "SetDefaultToLastUsedPath", strSetDefaultToLastUsedPath</nowiki>  <nowiki></nowiki>  <nowiki>modREgKeYmAker.SaveSettingEx HKEY_CURRENT_USER, "Software\My Software Name\s2album", "LoadImageCacheWarning", strShowICWOption</nowiki>
Bureaucrat, administrator
16,192
edits