Try to compile this line of code, and see what the
compiler tells you:
double d = null;
Shouldn't it be obvious that because GetValue()
returns its second argument if the registry entry
is not present, that the second argument must
be a value can be assigned to a double ?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
wrote in message news:5594292@discussion.autodesk.com...
At runtime I am getting an Invalid Cast error at the following line. I am creating a Dimstyle which works on except for the following. I have used the Getvalue for some string information like "ARIAL" with success, so I know my string to the KEY works. thanks ahead of time.
dsr.Dimtxt = (double)Microsoft.Win32.Registry.GetValue(("HKEY_CURRENT_USER\\Software\\VB and VBA Program Settings\\Jobs\\" + job), "rTextsize", null);
The value of rTextsize is 0.09375.