Hello,
I have a numerical analysis program which for simplicity calculates an algorithm similar to:
y = ax^3 + bx^2 + cx + d;
I calculate the values of a,b,c,d at runtime and would like to pass the following equivalent as a Func<double, double>. Where I can set a value for X, and get Y.
y = 12x^3 + 13x^2 + 14x + 15;
Where 12,13,14...
Hello. I am trying to achieve nesting in DataTable, i.e. a column of DataTable is a DataTable. My code is something like this:
DataTable table = new DataTable();
DataColumn column = new DataColumn("Qualifications", System.Type.GetType("System.Data.DataTable"));
table.Columns.Add(column);
I am getting a runtime error message at li...
i use a program written in VB6 that uses crystal reports 7 for reporting. my machine crashed recently. i managed to copy the program files to a new system. when i try run the program, a file related to crystal reports is said to be missing. i was advised to install crystal reports 7 runtime. but i don't have the setup. anybody know where...
Hi dudes,
I have a TWebBrowser object which is created in runtime and used in background, that is, not visible. The problem is that events like OnDocumentComplete dont work or are not triggered in Delphi2009. Any advice?
procedure TfrmMain.FormCreate(Sender: TObject);
begin
FWebBrowser:= TWebBrowser.Create(Self);
FWebBrowser.Regist...
I have an Image control on my WPF Form. How can I create a border around it during runtime?
Here's my XAML code:
<Image Margin="2.5"
Grid.Column="1" Grid.Row="0"
x:Name="Behemoth" Source="Images/Hero/Behemoth.gif" Stretch="Fill"
MouseEnter="HeroMouseEnter"
MouseLeave="HeroMouseLeave"
MouseDow...
Hi,
I am wondering if type can be determined as runtime information in C++.
(1) Although my question is quite general, for simplicity, I will start from a simple example:
#include <stdio.h>
#include <iostream>
#include <cstring>
using namespace std;
int main(int argc, char * argv[])
{
if (strcmp(argv[1], "int")==0)...
Is there a way to initialize the EntityManager without a persistence unit defined? Can you give all the required properties to create an entity manager? I need to create the EntityManager from the user's specified values at runtime. Updating the persistence.xml and recompiling is not an option.
Any idea on how to do this is more than we...
I have an application that uses the ms vc++ runtime. How should I install it on the end-user's system if it is not present? I was thinking of bundling it with the installer... but how would I do that as far as what to include? Is there some silent installer? If so, where can it be found? I can't seem to find it in the Windows SDK.
...
What ways can you dynamically create controls in C#?
This was objects at first but it would have been more precise to say controls. My terminology was messed up. Thanks Joel.
Edit{
Controls that are created during runtime. And are able to be accessed and edited by the program.
Does this help?
}
I like the idea of Dynamic creation and...
The Objective-C Runtime Reference says:
“Deprecated” below means “deprecated in Mac OS X version 10.5 for 32-bit code, and disallowed for 64-bit code.”
and I would like to use class_setSuperclass in Max OS X version 10.5 even though I still can do it the compiler gives warning telling me its deprecated but it still builds and the ...
Hi All,
I have a custom UI Editor for a property in C# . The editor works fine at design time. How ever I want to lauch the editor on click of a button at runtime. How can I do this?
Thanks,
Datte
...
Here's a overview of my workflow implementation:
GUI thread starts worker thread
worker thread analyzes some data
worker thread starts several other worker threads to work on subsets of
data
each of these last worker threads creates a workflow runtime and
executes a sequential workflow
Up until now, I've been creating a new WorkflowR...
Imagine you have a button like this:
<input name="myButton" type="button" value="button" onclick="return test();" >
where the test functions is as follows:
function test(){
// do something
return true; // based on some logic return boolean
}
Now let's say,I don't know what is set for the onclick event, and at runtime I need to ...
I have an Expando class which I need to inspect its properties from Java.
In Groovy:
def worker = new Expando()
worker.name = "John"
worker.surname = "Doe"
In Java:
Introspector.getBeanInfo(groovyObject.getClass())
Is it possible to compile at runtime the class from the object in Groovy?
...
Hello,
I need to run a couple of other programs from my own Java program, basically I need to run these command line statements.
svn log --xml -v > svn.log
and
java -jar example.jar arg1 arg2
and I need to use the text outputs written to the console from these programs in my own program. I've tried Runtime.getRuntime().exec() wit...
I mean using and IDE of course.
Does Java come with a toolbox like control that has drag and drop controls, that you can move around, etc?
Also, if I make an application in Java, will it run on any machine that has the Java Runtime Environment? I wouldn't mind learning some Java because of this single trait. :)
Say I build a simple ca...
I wonder if there is a non-programatical way of making log4j aware of changes on the configuration at runtime. I know I can use
static {
PropertyConfigurator.configureAndWatch("log4j.properties", 100);
}
at some useful place to watch a property file for changes, but I would prefer an option within the property file itself, to tell ...
I am looking to create a Javascript library for ActiveX objects, enabling chainability.
For example, I am looking to replace this:
var dbEngine=new ActiveXObject('DAO.DBEngine.36');
var dbs=dbEngine.OpenDatabase('D:\\Todo.mdb');
var rs=dbs.OpenRecordset('SELECT * FROM ListItems');
with something like this (a la jQuery):
var rs=AX('...
How it is determined whether the below call is bound at compile time or at runtime?
object.member_fn;//object is either base class or derived class object
p->member_fn;//p is either base class or derived class pointer
EDITED:
#include <iostream>
using namespace std;
class Base
{
public:
Base(){ cout<<"Constructor: Ba...
I am doing a performance comparison test. I want to record the run time for my c++ test application and compare it under different circumstances. The two cases to be compare are: 1) a file system driver is installed and active and 2) also when that same file system driver is not installed and active.
A series of tests will be conducted ...