runtime

How to localize WPF without recompilation? (dynamically loaded XAML)

We have a WPF application that is loading a usercontrol at runtime from the deployed .XAML file (customer requirement - they want to be able to replace the views entirely). We would like to localize strings in this XAML file. All .resx file based WPF localization approaches I have found on the web seem to require recompilation when the...

Java - Run Excel using runtime.getRuntime().exec

try { Runtime.getRuntime().exec("excel C:\\file.xls"); } catch (IOException ex) { System.out.println(ex); } Doesn't work. I have to put the full path of excel.exe in order to work. How can I make it generic (For any Excel Folders/Versions)? When I run the same line from OS with Windows Run (Start --> Run) it works. Is there a c...

How to use Delphi Dlls without enabling Build with runtime packages

Recently i started a project with so many forms , frames and extra controls, so my application was swelling up and i am using 3 exes in my projects(all made in Delphi 2009) and these applications are also sharing same frames and forms. so i used dlls to share these forms. but a problem came saying different Tfont error. so i refferd on...

Environment variable problem using java

Steps using runtime api echo %PATH% (output will be something like "c:\windows\system32;d:\test") execute ping or any system command, the output will be success delete one value for the path like d:\test echo %PATH% (output will be "%system32%\system32;") Now if I execute the same command executed in step 2 like ping, then I get "comma...

Is it possible to detect in code behind to know if we are being in design/runtime mode?

Possible Duplicate: Is there a DesignMode property in WPF? I have some codes that run & cause trouble for the designer of the IDE when editing a WPF form. So I want to know if I'm in design mode, I will turn off my code. Is it possible? ...

run subprocess exactly the same as the parent but with different arguments

As in title. Lets say I have an application which I run with argument "doSth". What I want to do is tu run subprocesses with the same command but with different arguments. Example: java -jar test.jar doSth and this process runs: Runtime.exec("java -jar test.jar doSthA") Runtime.exec("java -jar test.jar doSthB") Another: java Main...

Init grid row height doesn't work

Hi, this is my simple try-it application that create a grid with 2 rows. The 1st row's height is bound to a properties. The value I assigned to it only works at run-time. I tried to make it also work when design-time but I failed to do that (I used this thread to write my app). Please help me to see what I miss. Thank you! [Edit] The ...

delphi exe and dll without build with runtime packages

For my last project i was using many frames in my delphi application ,so i dicided to create dlls and put them inside the dlls(ALL created in Delphi) i have gone through many websites and came up with the code that works but for that example i have to compile both apps and dlls with build with runtime packages which means i have to dist...

is there any way to interpret pascal in Delphi applications

i want my own pascal code to be executed it also have some uses files and other complex functions just like a Delphi code can i do this ...

Setting Clojure "constants" at runtime

I have a Clojure program that I build as a JAR file using Maven. Embedded in the JAR Manifest is a build-version number, including the build timestamp. I can easily read this at runtime from the JAR Manifest using the following code: (defn set-version "Set the version variable to the build number." [] (def version (-> (str "j...

How to add a path of runtime DLL in VIsual C++ Express 2010 project?

I have some external dependencies to load with my C++ program, like boost or other libraries. If those .DLL of libraries are not in $PATH, once I run my program I got a "can't load the DLL" error message. To make those .DLL can be load when running my program, I need to add those path to libraries directory. For example: PATH=$PATH;c:\...

Appending at run-time to a dictionary

I have a function named OpenAccount() which takes in the details from the User and appends it to my database dictionary. I have a database file(module) which is imported in my function file. I have a function called AppendRecord(key,**dictvalues) which appends values to my database file. However I am not able to call the function and ...

Create a new variable as named from input in Python?

This is something that I've been questioning for some time. How would I create a variable at runtime as named by the value of another variable. So, for example, the code would ask the user to input a string. A variable would then be created named after that string with a default value of "default". Is this even possible? ...

In what order does Scheme code run?

We've been taught various syntax and told how to write definitions, but we've never written any code an ran it. What is the order that Scheme code runs in? Thanks! ...

In javascript, what code runs at runtime and what code runs at parsetime?

I'm completely muddled up about what code runs at runtime and what code runs at parsetime. With objects especially, I don't understand what parts of the object run before initialization, what runs at initialization and what runs sometime after. Since I'm completely confused, I'm not sure how complicated this question is. If it's not ju...

Create WPF Window at Runtime

Hi, Is it possible to create a WPF Window control at runtime? I'm thinking of a somewhat hack-ish solution to a problem, but I would essentially like to be able to have a dll which allows me to dynamically load a WPF Window and compile it's associated code behind (from an xaml and cs file respectivly). I assume I would also have to man...

generate python function in runtime and invoke them with string name?

All, foo.py def foo_001(para): tmp = para + 2 return tmp def foo_002(para): tmp = para * 2 return tmp def foo_003(para): tmp = para / 2 return tmp ... def foo_100(para): tmp = #complex algo, return tmp main.py from foo import * fun_name = ["foo_001","foo_002","foo_002" ... "foo_100"] src = 1 rzt = [] for i in fun_name: ...

SQL queries result size - does it matter much?

Hi, I have an sql query (MyQSL DB, using .Net's SqlClient) that returns a dataset. If the dataset's size is 4000 rows long or it's 20, is there a significant difference in runtime? Also, how much of the query's execution time is spent in opening a connection etc. comparing to the time to fill the results' table? Thanks. Clarification ...

Add a python script at runtime

Hello, I am beginning python and working on a project, and one thing I would like to be able to do is download and run a script dynamically at runtime. The general idea is to be able to connect to a server, download a python script on demand, and run that script that was just downloaded without having to restart the program or hard cod...

Split DetailsView Dynamically in asp.net

Hi, I Want to split a detailsview in runtime;for example when its number of rows are more than 10.my detailsview's row dynamically make in runtime so detailsview have not any fields in definition in asp page(such as template fields and etc). I googled it and I guess I have to change render method of detailsview but I don't know how to do...