View Single Post
  #25  
Old 19-03-2011, 01:14
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Quote:
Originally Posted by BlackWhite View Post
Hello peterf1999

About Inno
or
'SOFTWARE\Ubisoft\Assassin's Creed Brotherhood',
'SOFTWARE\Drakensang - Phileasson's Secret'
Give me error because Assasin's and Phileasson's contain '. Like any word with ' in their name.
Do you know how fix this error, please?

Thanks and greeting
The characters can be specified by their character value (usually an ASCII code):

Code:
RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Ubisoft\Assassin'#39's Creed Brotherhood',
'InstallDir', appath)
or

Code:
RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Ubisoft\Assassin'+chr(39)+'s Creed Brotherhood',
'InstallDir', appath)
Reply With Quote