runtime

zlib + masm

Can zlib be used with masm without all the c runtime libraries such as msvcrt.dll and many others? If so, can you tell me how? ...

Change connection string from class library in main application at run-time

You can change the connection string at run-time like this. You make the connection string setting available for writing as a separate property inside the MySettings class: Partial Friend NotInheritable Class MySettings Public WriteOnly Property RunTimeConnectionString() Set(ByVal value) My.Settings("MyConnectionString") = value ...

[JAVA] Make application run in its own directory

I'm trying to get an application (a game) to start with a Java script. There is a long explanation behind why, so I'll skip that part. The game won't run unless it is executed from its own directory, IE: Just telling Java to launch the EXE gives errors within the game. It must be launched from its directory. I've Googled for hours over...

C# runtime application Diagnostics

I am developing a c# GUI and was wondering if there were any (preferably free) runtime diagnostic programs available. What Im looking for is a way to monitor user interactions with my GUI and what functions are called when. Preferably I do not want to add stacks of debug code as this has the potential to change the behaviour of the bug...

Poll C# app's memory usage at runtime?

I have an app that, while running, needs to poll its own memory usage. It would be ideal if it could list out the memory usage for each object instantiated. I know this can be achieved by WMI, but I was hoping for something that doesn't rely on WMI. ...

get C++ object name in run time

Can I get object's name in run time (like getting object's type via RTTI)? I want the object to be able to print its name. Thanks. ...

InstallShield Runtime?

We have InstallShield 2009 Premier installed on one system on which it is used to create and compile setups (one seat license). However, we are trying to create a one-click-build-experience by using Team Foundation Build Server to do nightly builds. We would like to integrate the generation of the setup files as well. I know that there...

Using 64 bits integers without C runtime - link error __alldiv

I am trying to build a windows console application without using the C runtime (msvcrt or libcmt). That is to link just against kernel32.lib and use console functions from WIN32 API instead of printf and such. My problem is that during link the compiler fails to find __alldiv which seems to handle 64 bit integer divides in 32 bits appli...

How to sort controls at runtime in ASP.NET

How to order Controls at runtime in ASP.NET for instance I have three text boxes in my web page in the following order textbox1 textbox2 textbox3 I want the order of these controls to be changed depending on the user preferences textbox3 textbox2 textbox1 that is just an example, any idea? ...

Runtime class in java

How to execute a java program with the help of Runtime.getRuntime().exec(). For example we shall have the java file path as c:/java/abc.java. Please help me with the code. ...

C# specifying generic collection type param at runtime

I have: class Car {..} class Other{ List<T> GetAll(){..} } I want to do: Type t = typeof(Car); List<t> Cars = GetAll<t>(); How can I do this? I want to return a generic collection from the database of a type that I discover at runtime using reflection. ...

Search times for binary search tree

Does anyone know how to figure out search time for a binary search tree(i.e. worst-case, best-case, and average-case)? ...

Erlang frames - dictionary datatype

I ran into some texts about the introduction of a "frame" datatype into Erlang, basically a dictionary(associative array) type thats common in other languages... one that would be preserved at runtime (unlike records)... any ideas about where this innitiative is at? will it be implemented in R13? R14? would be very usefull... I used "d...

How do I set the default Java installation/runtime (Windows)?

I'm in the situation where I've installed the JDK, but I can't run applets in browsers (I may not have installed the JRE). However, when I install the JRE, it clobbers my JDK as the default runtime. This breaks pretty much everything (eclipse, ant) - as they require a server JVM. There's no JAVA_HOME system property these days - it ju...

How to know what type is a var?

TypeInfo(Type) returns the info about the specified type, is there any way to know the typeinfo of a var? var S: string; Instance: IObjectType; Obj: TDBGrid; Info: PTypeInfo; begin Info:= TypeInfo(S); Info:= TypeInfo(Instance); Info:= TypeInfo(Obj); end This code returns: [DCC Error] Unit1.pas(354): E2133 TYPEINFO stand...

How can I programmatically determine if the Visual C++ Runtime 8.0 is installed?

I have an InstallShield installation that uses custom actions that depends on the Visual C++ Runtime 8.0 sp1. In the past, I was able to install the runtime using the merge module provided by Microsoft with Visual Studio. Based on the way the Visual C++ Runtime 8.0 sp1 side-by-side installation works on Vista, the runtime cannot be used ...

Online compilers/runtime for Java, C++, Python and ObjC?

Does anyone know of a good online compiler/runtime (for C++, Java, Python, ObjC etc.) that I can access on the web? What I'm looking for is something that would allow me to type in a program in a web form and to run the program and see the results online. (Let's not get into the why for now. Suffice it to say for the moment that I don...

Is it possible to create a use TClientDataSet in non visual unit or Inside an Class Object?

Is it possible to create and use a TClientDataSet inside an Object at runtime? I like to make several changes in my Table and have those all Applied at the same time in cache like way, and TClientDataSet lets me do that. Know when I want to do this I have to build a TForm. Is it Possible? UPDATE Can it be used, and How, without TData...

Switch Over Value Determined at Runtime in c#

I've got a case statement in c#. I would like to chose the values for the cases from a configuration file at run time. Is this possible? ...

Objective-C messaging, smartly dealing with unknown messages

Is there a way to do something similar to KVC but use the message name as the key itself? For example, rather than valueForKey:, is there a way for an object to respond to all messages? For example, say you have an XML document: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE ...> <employees> <employee> <name>Bill</name> <de...