call

General programming - calling a non void method but not using value

This is general programming, but if it makes a difference, I'm using objective-c. Suppose there's a method that returns a value, and also performs some actions, but you don't care about the value it returns, only the stuff that it does. Would you just call the method as if it was void? Or place the result in a variable and then delete it...

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?...

ExternalInterface.call("window.location.host.toString")

Hello Everyone, I wrote a flex application that get the host string from the browser using this code ExternalInterface.call("window.location.host.toString") This line of code work prefectally to get the host string in both Firefox and Opera. However, when using IE, the returned string is always 'null'. I need to get such information ...

objective c - call object-returning method without using return value

I know its fine to call a method as if it was void even though it has a return value (like printf), but what about this? [NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(method) userInfo:nil repeats:NO]; Can I just have that floating there without using the object it returns? That's like calling [NSObject all...

calling dll from kernel mode c++ windows

How would I go about calling a dll from kernel mode? I have tried making a custom lib file using multiple techniques but I cannot get anything to work. I have also researched on google but cannot seem to find anything. I was also curious if it was possible to create entries in the import addres table from c++ or at link time? Thanks for...

Silverlight WCF Proxy async only?

Why do the Silerlight-generated WCF proxy class(es) offer only async calls? There are cases where I don't really need the async pattern (for example in a BackgroundWorker) EDIT : Sometimes I need to process the results of two WCF calls. It would have been much simpler if I could have waited (the business of the app allows that) for bot...

Get call stack from any thread within C.

In C on Solaris 10, I'd like to get the call stack from an arbitrary thread within a process. I have many worker threads and one thread which monitors them all to detect tight loops and deadlocks. The function I'd like to implement is for the monitoring thread to print the call stack from the "hung" thread several times before it kills...

iPhone - is it possible to make system call

Hi Devs, is it possible to make a system call like f.e. execute a "ls -la" and use the result in your app. If it is possible would apple approve this usage? Thanks Tom ...

HOW TO make test.php continue with rest of coding without waiting for a function to complete task?

Hi there, This is the case. At test.php, I have a function dotask(a,b,c,d); This function need to do task that need 2-4 minutes to complete. Task including insert new record into db, curl call to other url to do task and etc. However, I want test.php to: Just make sure dotask(a,b,c,d) is called, no need to wait until task completed th...

How to call GetEnumerator on arbitrary type?

I'm writing a control that should be able to display any list of data. What I wanted to do, was to mimic the for-in construct in that I check for a public GetEnumerator function that contain a Current property and a MoveNext method. I've determined the following: I can check the existance of a method by simply calling MethodAddress on...

Java: Using an actionlistener to call a function in another class on an object from that class

Basically what I want to do is get a start button to initiate a method running in another class and acting on another object. My code for the listener: button1a.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent event) { // Figure out how to make this work //sim.runCastleCrash(); } }...

reference problem when reaching ResourceMap's String?

I have been developing desktop application in Java. Here, it shows how i reach string of Properties file. Key-value of String is HDI.Device.1.ID org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(HDIManagementApp.class).getContext().getResourceMap(HDIManagementView.class);String ID=resour...

How to call C# .dll from a C++/CLI application?

I'm trying to call the LumenWorks .csv file reading library from a C++/CLI application and having some issues. I've added a dependancy on LumenWorks.Framework.IO.dll but when I try to then use the library: namespace MyNamespace { using namespace Lumenworks::Framework::IO::Csv; // <My code definitions here> } I get a message ...

Qt4: How to call JavaScript functions in a page from C++ via QtWebkit?

Greetings everyone, I'm trying to write a simple log viewer using Qt4's WebKit port/implementation. My HTML code looks like this: http://pastie.org/613296 More specifically, I'm trying to find out how to call the add_message() function which is defined in the <script> section in the HTML document from my C++ code. // Doesn't work...

iPhone. Open application after call

Hello If the user received a call during application running, how to automatically open the application after call ended. And how to restore the last session, so that the user would not start from the beginning? Thanks ...

Blackberry - make a call from native address book

how to make a call from menu item appended in native book of BB('Call from ABC' option)? ...

Intercept outgoing call in Blackberry

hi, we are looking for a way to do the following: user with BB enters a number (or selects a contact and clicks 'send') our app in the background detects the call event our app does something (e.g. blocks the call / makes a call to a different number, etc) can this be done at all? can it be done transparently to the user (i.e. no d...

How to implement such a callcenter function in PHP?

It should be something like this: function callcenter($func,$value,$position) { } Where $func is the function to be called, $value is the parameter for $func, and $position stands for index of $value, for example, callcenter('func',1,2) should actually call func(null,1) callcenter('func',1,3) should actually call func(null,null,...

WaitCallback and QueueUserWorkItem

When i implement WaitCallback waitCB = new WaitCallback(DisplayTime); for (int i = 1; i <= 5; i++) { ThreadPool.QueueUserWorkItem(waitCB, null); Thread.Sleep(2000); } public void DisplayTime(object state) { Console.WriteLine("Current Time {0} ", DateTime.Now); } ( 1 ) Does it mean ,my job is queued into to ...

Cannot read function written in baseform

I have a program (aspx page) which inherits the baseform. My baseform has a function which validates a session. But currently, the program runs to the page and it didnt go through the baseform and read the function. I dont know where i go wrong. no error pop out. I build the page, still no error. Below is the code which i call the base...