Windows Registry Problem in Win98
Ivan <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I got no problem runing the following script in WinXP but it trown
exception in Win98. Any ideas ?
Thanks
int li_index = 0;
String ls_install_path = "";
try{
li_index = Registry.OpenKey( RegistryConstants.HKEY_CURRENT_USER,
"CONTROL PANEL\\INTERNATIONAL");
ls_install_path = Registry.QueryStringValue( li_index,
"SSHORTDATE" );
}catch( IOException e ){
System.out.println("Java - Registry IOException" + e.toString());
}catch( COMException e ){
System.out.println("Java - Registry COMException" +
e.toString());
}catch(Exception e){
System.out.println("Java - Registry Exception" + e.toString());
}
Exception trown in Win98 :-
java.lang.NullPointerException
----------------------------------------------------------------
This e-mail has been sent via JARING webmail at http://www.jaring.my