function-calls

Synchronous dialogs in Flex?

How can I open a synchronous dialog in Flex? I need to call a function from an External Interface (JavaScript) that will open a simple dialog in the Flex application and returns an value according to the button the user has clicked (OK/Cancel). So it should by a synchronous call to a dialog, i.e. the call waits until the user has closed...

Using function prototypes dynamically in PHP

Hi, I'm writing a construct in PHP where a parser determins which function to call dynamically, kind of like this: // The definition of what to call $function_call_spec = array( "prototype" => "myFunction", "parameters" => array( "first_par" => "Hello", ...

What is a callback function and how do I use it with OOP

I want to use the php simple HTML DOM parser to grab the image, title, date, and description from each article on a page full of articles. When looking at the API I notice it has a set_callback which Sets a callback function. However im not sure what this does or how I would use it? In one of the examples its used to call a function whic...

Invoking asynchronous call in a C# web service

I'm consuming a third-party resource (a .dll) in a web service, and my problem is, that invoking this resource (calling a method) is done asynchronous - I need to subscribe to an event, to get the answer for my request. How do I do that in a c# web service? ...

ARM to C calling convention, registers to save

It's been a while since I last coded arm assembler and I'm a little rusty on the details. If I call a C function from arm, I only have to worry about saving r0-r3 and lr, right? If the C function uses any other registers, is it responsible for saving those on the stack and restoring them? In other words, the compiler would generate code...

F# syntax error.

I'm having a syntax error. I want to take the floor of a function that returns a floating point number. I thought this would give me the right answer let cyclesPerInterrupt bps bpw cpu factor = floor (fudge (float(factor) cyclesPerWord cpu wordsPerSec bps bpw)) But it doesn't. I've tried everything I can think of, and it's just not...

Visual Studio - show all calls to a function in source code level

Hi all, I am wondering if there is anyway to list all the calls to a function in source code level so that I can see the dependency if I modify that function. One method I use is to search the function name in the "Entire Solution" but I am looking for a better way. Thank you very much. Cheers, Timothy ...

jQuery ajax calling javascript function

Dear all, I am using JQuery And Ajax. My MainFile has the following code: <html> <head> <script src="Myscript.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $.ajax({ type:'POST', url: 'a...

Making a another script function call from javascript

D ear All, I have Designed the Javascript function My.js it contains following code My.js function display(){ //Call to another Javascript function defined as ShowUser() in selectUser.js showUser(str); } SelectUser.js has function showUser(Str) { //Do the display } Now My Question is I want to make call showUse...

How to maintain lists and dictionaries between function calls in Python?

Its urgent... I have a function. Inside that I'm maintainfing a dictionary of values. I want that dictionary to be maintained between different function calls Suppose the dic is : a = {'a':1,'b':2,'c':3} At first call,say,I changed a[a] to 100 Dict becomes a = {'a':100,'b':2,'c':3} At another call,i changed a[b] to 200 I want that ...

Function overloading by return type?

Why don't more mainstream statically typed languages support function/method overloading by return type? I can't think of any that do. It seems no less useful or reasonable than supporting overload by parameter type. How come it's so much less popular? ...

Calling a function from a string in C#

I know in php you are able to make a call like: $function_name = 'hello'; $function_name(); function hello() { echo 'hello'; } Is this possible in .Net? ...

Automatically call function #2 upon calling function #1

This should be a quick one. Is it possible to do something like this: [Callback(funtionY)] void functionX() { } void functionY() { } So that when functionX is called, functionY is called automatically too? Reason I ask is because I'm going to implement networking functionality to a small XNA based game engine, and I want to mark func...

Javascript Cookie onload Call

I have a cookie that I did using javascript and to check if it had to be replaced I used "onload=checkCookie()" in the body tag of the HTML, however now I'm trying to place the js in another file and just link it using the tag, but if I do that I can no longer call this function using just "onload" so I was wondering how can I do this? ...

Passing functions which have multiple return values as arguments in Python

So, Python functions can return multiple values. It struck me that it would be convenient (though a bit less readable) if the following were possible. a = [[1,2],[3,4]] def cord(): return 1, 1 def printa(y,x): print a[y][x] printa(cord()) ...but it's not. I'm aware that you can do the same thing by dumping both return value...

How to call C# DLL function from VBScript

I have my script on server, so I have not UI interaction available and have to use DLL instead of console application. How to call a function in C# DLL from VBScript? Have I make my DLL to be COMVisible? Have I to register it? ...

Is there a system where executing a program and calling a function is unified?

I would like to be able to do one or more of the following from the shell: - call any function from the program not only the main - pass parameters that are not only strings (not only argv) - have a program return not only int (the return code from main) - assign returned values to shell-level variables to be able to pass them to oth...

how do procedure calls work in assembler?

I just started tinkering with ASM and I'm not sure if my understanding of procedure calls is correct. say at some point in the code there is a procedure call call dword ptr[123] and the procedure consists of only one command, ret: ret 0004 what would be the effect of this procedure call, and where would the return value be stored?...

Categorizing architectures based on calling features

There are different ways of calling functions: call stacks, continuation passing, messaging and event handling. What do you call the category of these features? Invocation? What do you call architectures categorized by these features? Invocation architecture? Sub question: Other than the four given, what are some examples of this type o...

How Can I Get the Arguments of Function Calls from the Firebug Profiler?

Firbug profiler outputs the functions called, but not the arguments/parameters of each function call. Is there any way to get those arguments? I've dug through the DOM tab for any of the given function calls that I know would have to have had some arguments, but was unsuccessful in pulling out any details. ...