hmmmm maybe is has something to do with you sending char* datatypes instead of string*.

manual...

Code:
When the argument types don't match any of the overloaded functions, the first function is automatically used! 
This can happen when it expects a STRING* and a char* is passed. 
This is important when passing constants to overloaded functions: Text constants like "this is a text" are of type char*,not STRING*. 


so when you use...

PopupMenu(tmpPanel,"Dummy_string_to_test_funtion",100,10,15,"Times New Roman#24b");

wouldn't "Dummy_string_to_test_funtion" and "Times New Roman#24b" be passed as char* and not string*, causing a crash?

Not sure if this is relevant, but its worth a try.

If you have tried using ints and it still isn't working then your function must be wrong...

Try and compile this piece of code...

Code:
#include <acknex.h>
#include <default.c>
var c = 0;

function hello(int i, int j)
{
	for(c=0; c<(i+j); c++)
	{
		beep();
		wait(-1);
	}
	
}

function hello(int i, int j, int k)
{
	
	for(c=0; c<(i+j+k); c++)
	{
		beep();
		wait(-1);
	}
	
}

function hello(int i, int j, int k, int l)
{
	for(c=0; c<(i+j+k+l); c++)
	{
		beep();
		wait(-1);
	}
	
}

void main()
{
hello(3,5,2);
wait(-15);
hello(2,3,4,1);
}


Last edited by DJBMASTER; 09/06/08 20:46.