I have a WPF C# project that I am working on and I have multiple (25) Image controls arranged in table (5 columns, 5 rows). Each Image control is called "Image[row][column]" (eg:Image15).
Assigning a different source to the control works fine with ony one problem. No matter which control I use (Image11, Image12, Image 55) it affects Ima...
I am changing the class of some objects using object_setClass(id object, Class cls). I am changing the class to a subclass of the original class. Then I set some properties that are only defined on the subclass, and things seem to work fine.
I was a bit surprised that this worked, because object_setClass, as far as I understand, doesn't...
Hi,
I am using CMake to build a program on linux. The program compiles successfully and runs from the project build directory. The program is linked with a custom library in the directory ${HOME}/build/lib
I have an install stage with:
install(TARGETS ProgName RUNTIME DESTINATION bin)
When I run make install the program gets put in ...
I'm trying to resize my app's view whenever an iAd is scrolled down from the top.
The problem is that in run-time, when i set the resized frame size of the relevant view, the resizing doesnt happen 9so the iAd is draw on top of the top 50 vertical pixels).
If I set the UIView size at design-time, then I see that the view is resized (whe...
I'm pretty pleased with targeting .NET 2.0 for my XNA games on the basis that it is more widely available (and I can still use nice C# 3.0 language features).
But I recently came across an article saying that the .NET 3.5 SP1 JIT added inlining of value-type methods (something that, as a game developer, I use a lot of).
So my question ...
OK I have one that doesn't seem to be answered.
I'll past the whole script
The problem is with the TRY. Since it is happening in the Finder and I am trying to pass some info back to FM. THis works fine as a FM script but fails in the runtime. As far as I can tell the only solution would be to change all the Filemaker Pro Advanced ref...
I have a slew of choices for Real Basic and Revolution but the only folks who seem to have offered scripts for time trials and registration of FMP runtimes have disappeared. I can essentially port over the code from other projects but I'm wondering what others are doing. Is there a good library of code for this or is everyone home brew...
Hello,
I've got a WiX project that includes the installation of Visual C++ 2008 runtime components for x86 with a separated merge module.
Unfortunately there's a well known issue with that .msm with MSI v4.5. To be more specific the .msm custom action SxSUninstallCA takes 20 minutes to complete on uninstall.
So, long story short, I de...
So yes I'm very new to creating my own custom events. I can do the basics when I put controls on a form but this one is a little more complex. I have an application that reads in a .TSV and populates a form with controls based on the number of objects it "reads." So for instance: I have a file that contains 10 people objects and my code ...
I've an Adobe AIR 1.5 application which uses ApplicationUpdater framework to update itself. I am planning to use new features of AIR 2.0 but I am not sure that all the clients installed with my AIR application will have AIR 2.0 installed.
I know that I can detect the current runtime version but is there a way I can install the new runti...
Hi,
Below is the code snippet to examine the memory
public class TestFreeMemory {
public static void main(String ... args){
Runtime rt = Runtime.getRuntime();
System.out.println("Free Memory (Before GC): " + rt.freeMemory());
rt.gc();
System.out.println("Free Memory (After GC1): " + rt.freeMemory...
Hello,
I need to generate structs and classes at run time in C#(might be in CLI) managed environment.
Suppose I have all data and all data types associated with those data memebers of some class/struct. Now I need to generate structs/classes at runtime and after that I need to map data inside those runtime created structs fields.
e.g I...
I have a Class (but no instance) and need to know if it conforms to a certain protocol. However, Class can be subclassed several times and class_conformsToProtocol() ignores protocols declared on superclasses.
I could just use class_getSuperclass() and recursively check all the classes in the hierarchy upwards until the superclass is ni...
It was something like cMessage I think? I can;t remember, could someone help me?
...
If you use an AbsoluteLayout (I know that it is deprecated, but it was the only way to solve my problem ) you can give the childViews the tag "android:layout_x" and "android:layout_y" to set their absolute position within the AbsoluteLayout.
However I dont want to set these informationen in the xml, because I only know them at runtime....
I'm trying to compile and load a class at runtime, without knowing the package of the class. I do know that the class should comply with an interface, and the location of the source, (and hence the class name). I'm trying the following:
/* Compiling source */
File root = new File("scripts");
File sourceFile = new File(root, "Test.java"...
I am new to web development and am used to extensive use of various data structures in getting things done. I've also heard that having lots of queries is worse than few queries (but that complex queries can be even slower).
I'm wondering whether lots of simple queries would perform better or worse than one complex query that is later p...
Hi,
i'm slightly confused about this run time polymorphism. correct me if i am wrong, run time polymorphism means, function definitions will get resolved at run time.
take this example..
class a
{
a();
~a();
void baseclass();
}
class b: class a
{
b();
~b();
void derivedclass1();
}
class c: class a
{
c();
~c();
void derivedclass2();
...
Hello all,
I am trying create such a plugin architecture that;
IPlugin: an interface that all plugins must implement.
NormalPlugin: a normal plugin.
ComplexPlugin: a plugin which, beside implementing the base methods, has some custom methods.
HostApp: an app that knows what an IPlugin is.
currently the host app will have ComplexPlugin a...
I'm hoping someone can either tell me what I'm doing wrong correct my flawed understanding of how this works and explain why it's not possible.
I've been developing a fairly basic database/program for a client in Access. They have Office 2007, I have Office 2010. Initial test of creating a database in 2010 (in "2007" format) and opening...