how to detect operating system language (locale) from java code

The Windows XP systeminfo command displays lots of stuff, but the relevant information is this: System Locale: en-us;English (United States) Input Locale: en-us;English (United States) To get equivalent information in Java, use Locale.getDefault() to get the Locale that Java is using, and use methods on the Locale object such as getCountry(), getLanguage() to get details. … Read more

Error “cannot convert ‘std::basic_string’ to ‘const char*’ for argument ‘1’ to ‘int system(const char*)'”

The type of expression ” quickscan.exe resolution 300 selectscanner jpg showui showprogress filename ‘”+name+”.jpg'” is std::string. However function system has declaration int system(const char *s); that is it accepts an argumnet of type const char * There is no conversion operator that would convert implicitly an object of type std::string to object of type const … Read more

.NET Process Monitor

WMI provides a way to track processes starting and terminating with the Win32_ProcessTrace classes. Best shown with an example. Start a new Console application, Project + Add Reference, select System.Management. Paste this code: using System; using System.Management; class Process { public static void Main() { ManagementEventWatcher startWatch = new ManagementEventWatcher( new WqlEventQuery(“SELECT * FROM Win32_ProcessStartTrace”)); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)