calling

Does it prohibited calling classic C function from Objective-C++ class method body?

I have experienced some strange behavior of Objective-C++. I have an Objective-C++ class, and it calls a classic C function in a method body. But linker cannot find the C function. I described the problem here: http://stackoverflow.com/questions/2213589/xcode-print-symbol-not-found-for-my-c-function-which-used-in-objective-c-method-b/22...

In javascript, how do I call a class method from another method in the same class?

I have this: var Test = new function() { this.init = new function() { alert("hello"); } this.run = new function() { // call init here } } I want to call init within run. How do I do this? ...

Getting the instance that called the method in C#

I need to have an algorithm that can get the object a method within the method like this: public class Class1 { public void Method () { //the question object a = ...;//the object that called the method (in this case object1) //other instructions } } public class Class2 { public Class2 () { ...

How to call a function within $(document).ready from outside it

How do you call function lol() from outside the $(document).ready() for example: $(document).ready(function(){ function lol(){ alert('lol'); } }); Tried: $(document).ready(function(){ lol(); }); And simply: lol(); It must be called within an outside javascript like: function dostuff(url){ lol(); // call ...

Get window handle of calling window

Hello, there is a software which calls a method in my C# dll. In this dll method i need to have the window handle of the program/window which called my dll. how to get this "calling window handle"? Thanks! ...

How to get function name against function address by reading co-classs'es vtable?

Hello, I need to call the co-class function by reading its address from vtable of COM exposed interface methods. I need some generic way to read addresses. Now I need to call the function, which would have specific address(NOT KNOWN) arguments(parameters) which I have collected from TLB, and name as well. How that address corresponds t...

nasm/yasm arguments, linkage to C++

Hello everybody, I've got a question concerning nasm and its linkage to C++. I declare a litte test function as extern "C" void __cdecl myTest( byte i1, byte i2, int stride, int *width ); and I call it like this: byte i1 = 1, i2 = 2; int stride = 3, width = 4; myTest( i1, i2, stride, &width ); the method only serves to debug assembl...

How to execute Javascript function in C++

Please tell me, how to include a javascript header file or javascript function in C++ code. The C++ code is written in Linux(UBUNTU)? Although i need to perform the above action only, but let me tell u my purpose of doing it, as i am intending to implement CTI (Computer Telephony Integration) operation. (Help will be appreciated) Than...

MBUnit - Calling the same method multiple times in a sequence?

Hi Is there a way in MBUnit to have the same test called multiple times with different parameters in a sequence, as such: Method1() Method2(param A) Method3() Method2(ParamB) Method4() Method2(ParamC) etc? I've tried using the Order parameter but sadly I was too hopeful in that the Ordering would be considered class-wide rather than t...

C++ Function Calling Itself

Question I wish to know if this is a viable way to implement variable depth recursion so that I can run a function at each step and any better/other solutions to the description problem. Description Suppose I wish to have a function that fills an array either in pattern x,y,x,y,x,ywhere x and y are variables defined by some algorithm and...

calling ApplicationDidFinishLauching Method

hi , i need from another nib file to call the method (applicationDidFinishLauching) from appdelegate. I am a bit new into the calling methods system can you help me? i have done this code since : DrunkeNewIdeaAppDelegate *appDelegate = (DrunkeNewIdeaAppDelegate *)[[UIApplication sharedApplication] delegate]; ...

Calling (or running) a simulation software from Matlab

I have run simulations on software (named CMG) using command prompt. The command prompt works well in all respect of running the software as well as generating reports and output files. To generate an ouput file (.rwo format) containing the desired result, we have to run the executable of the report program which uses a parameter file (....

Matlab unable to open the .dat file as data file when calling a software using 'system'

To generate an ouput file (.rwo format) containing the desired result, we have to run the executable of the report program which uses a parameter file (.rwd format). The output file is ReportBHP1.rwo, this file will contain the variable exported. Now to implement this in Matlab, below is a small script giving a gist of what I am trying ...

How to pass data to many functions

I am new to C++ programming. Now I have a program that consists of millions of lines of code in thousands of files. But when I saw the main() (command line) it was very small. Now how to pass data to so many million functions from such a small main()? There was no text file for parsing or array of structure that contains a function poin...

What is an OpenSolaris syscall calling convention (x86)?

What is an OpenSolaris syscall calling convention (x86)? F.e. I'd like to write a program in 32bit assembly which displays a string to the console. For this I'd like to use "write" syscall (no. 4). C definition for write is: ssize_t write(int fildes, const void *buf, size_t nbyte) what registers should hold fildes, buf and nbyte argu...

Get URL of calling webpage in PHP

Hello all, I am working on a website statistics engine for a class. The idea being that you can simply embed a little code in your web page which will call the stats website on every page load and the stats website will then track your hits and such… nothing ground breaking. What I would like to do is be able to break down website hits...

how to programmatically instantiate phone call from iPhone

Please do tell how I can make a call with the iPhone. Below is the code I have written, but nothing happens when the button is clicked. Is it a problem of the simulator and would it work on the phone, or is there any mistake in code? - (void)applicationDidFinishLaunching:(UIApplication *)application { UIButton *uiButton_G_obj = ...

how to write a dos commands written inside a batch file into a javascript.

Hi , I am using the following javascript: function doPrint(){ netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var exe = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile); exe.initWithPath("C:\\temp\\print.bat"); exe.launch(); } print.bat has the following com...

C# accessing method redirection

Guys i'm really embaraced to ask for this, but i got stuck and i can't think for solution: I found an IniParser library that i use for parsing settings from file. However the default approach is this: FileIniDataParser parser = new FileIniDataParser(); //Parse the ini file IniData parsedData = parser.LoadFile("TestIniFile.ini"); pa...

Calling popToRootViewControllerAnimated after dismissModalViewControllerAnimated

Hi friends, I am working application in which i calling presentModalViewController and once finished(calling dismissModalViewControllerAnimated:YES) it should immediately call popToRootViewControllerAnimated. But the issue is dismissModalViewControllerAnimated:YES is working properly but popToRootViewControllerAnimated is not working a...