manifest

Save language chosen by user, Android

荒凉一梦 提交于 2019-12-01 08:39:41
How can I change default string.xml? I can change my app to five different languages, but whenever I close the app and reopen it. It goes back to default English. Is it possible to somehow change the default folder "values". For example, from values (English) which is default to values-pt (Portuguese). Any help is much appreciated! you can use following public void loadLocale() { String langPref = "Language"; SharedPreferences prefs = getSharedPreferences("CommonPrefs", Activity.MODE_PRIVATE); String language = prefs.getString(langPref, ""); changeLang(language); } public void changeLang

How to create isolated/reg-free COM between Visual Basic DLLs and a C++ DLL?

江枫思渺然 提交于 2019-12-01 08:36:56
问题 I have to use a VB (COM) DLL in a C++ DLL. I figured out how to access the VB (COM) DLL from the C++ DLL and it works. Now I've got the problem that I have to use isolated COM/reg-free COM because I can't register the DLL on every PC it has to be used on. I figured out to use manifest-files to achieve this but I can't get it to work and I don't know what is wrong. I have a VB DLL called AccConnVB.dll with the following AccConnVB.manifest file: <?xml version="1.0" encoding="UTF-8" standalone=

Running Windows commandline from Java as an Administrator - Creating a .manifest file

北城余情 提交于 2019-12-01 08:15:47
问题 I am running Windows 7 Pro and working on a Java application in Eclipse. I need Eclipse to send user-specified commands (such as 'chkdsk C:') to the command prompt and then output to the console in Eclipse whatever the command prompt would have printed. I have the sending commands working and the receiving text back. However, when I to run chkdsk I need to have admin privileges for the command session. I see from the thread here: Java: run as administrator that one way to do this is through a

Where is a .net Application Icon Stored?

点点圈 提交于 2019-12-01 08:04:20
I'm trying to figure out where my application's icon is stored in VS 2008. On the startup project's application properties, I added an icon with the setting "Embed manifest with default settings." I'd like to programatically display the icon in the application, but I can't figure out where the icon is being stored. How can I get a reference to the application's icon from code? Try this: var icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); It is stored in the unmanaged resource section of an executable. You can see that section with File + Open + File and selecting the DLL or EXE.

Where is a .net Application Icon Stored?

喜欢而已 提交于 2019-12-01 06:21:55
问题 I'm trying to figure out where my application's icon is stored in VS 2008. On the startup project's application properties, I added an icon with the setting "Embed manifest with default settings." I'd like to programatically display the icon in the application, but I can't figure out where the icon is being stored. How can I get a reference to the application's icon from code? 回答1: Try this: var icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); 回答2: It is stored in the unmanaged

How can I specify dependencies in the manifest file and then to include it into my .jar file?

北城余情 提交于 2019-12-01 06:16:45
问题 I generated .class files by the following command: javac -cp \directoryName\external.jar myPackageDirectory\First.java myPackageDirectory\Second.java I needed to use -cp during compilation and name of .jar file of an "external" library (external.jar) to be able to use this library from my code. Using my .class files I have generated my .jar file in the following way: jar cfm app.jar manifest.txt myPackageDirectory\*.class manifest.txt contains just one line: Main-Class: myPackageName.First My

How do i get jars from manifest's Class-Path-entries

一世执手 提交于 2019-12-01 06:14:30
I have a runnable jar with two jars in the Class-Path entry of its manifest file: Class-Path: module1-0.0.1-SNAPSHOT.jar base-0.0.1-SNAPSHOT.jar Main-Class: test.MySPI The program runs fine and all dependencies in the referenced jars are met. However, when I try to access the class path, the jars are not there: String classpath = System.getProperty("java.class.path"); String[] entries = classpath.split(System.getProperty("path.separator")); for (String entry : entries) { System.out.println("Entry: " + entry); } Only gives Entry: .\module2-0.0.1-SNAPSHOT.jar Is there a way of accessing the

Windows path searching in LoadLibrary with manifest

心已入冬 提交于 2019-12-01 06:09:47
问题 If you call LoadLibrary without a path (e.g., LoadLibrary("whatever.dll") , Windows will generally follow its standard search algorithm, the same one it uses to find EXEs. My question is this: suppose that an application manifest specifies specifies a particular version of a system DLL, say, comctl32.dll 6.0. In that case, will LoadLibrary("comctl32.dll") go immediately to the correct side-by-side folder, or does it still perform some kind of search? 回答1: From Microsoft: Applications can

Regarding 'singleton:=true' in Manifest file

偶尔善良 提交于 2019-12-01 06:06:48
问题 I have a plugin which at present doesn't have any extension points (neither does it extend any other plugin). To resolve a certain issue I have to create an extension-point for this plugin and an appropriate extension somewhere else. When doing this eclipse forced me to set singleton:=true in the Manifest file. I know the reason why this parameter has to be set, but I wanted to know if there are any implications on the functioning of the plugin within the product by introducing this parameter

Adding privateNetworkClientServer capability to Windows 8 Cordova Application

主宰稳场 提交于 2019-12-01 06:00:21
问题 How / where do I add the privateNetworkClientServer capability to my Cordova application so that it ends up in the compiled Windows 8 app manifest file. If i build, modify the built application manifest to ass the capability manually it is lost the second i press play as it overwrites the file. Thanks 回答1: Okay so I found the answer, you need to create a package.manifest file in res\cert\windows8 I then copied all of the fields from manifest that was built prior with exception of the Build