Hi,
I am trying to pass a pointer to the a dll function
the code in BlitzMax is as follows:
Local width:Int=0
Local varbnk:TBank=CreateStaticBank(Varptr width,4)
DllFunction(Varptr width)
In the c++ code:
int DllFunction(int *width)
{
printf("%d",*width)
}
The variable is not getting passed properly
Please advise
I am trying to pass a pointer to the a dll function
the code in BlitzMax is as follows:
Local width:Int=0
Local varbnk:TBank=CreateStaticBank(Varptr width,4)
DllFunction(Varptr width)
In the c++ code:
int DllFunction(int *width)
{
printf("%d",*width)
}
The variable is not getting passed properly
Please advise