01-10-2005, 05:27 PM
Quote:How about this declaration?
declare sub funky(byval type as integer ptr, byval data as single ptr)
The bold words are reserved words but some C headers used those as param names. Would that delare work?
That declare should work just fine. FB/C doesn't utilize the parameter names, but it does utilize the size of the parameters to determine where passed values are placed in memory/on the stack. At least I think.
e.g., in C:
Code:
// Prototype (C equivalent of declare):
// Notice arg names are omitted.
int myfunction(int, float, char *, long);
int myfunction(int a, float b, char * thingy, long x) {
// Code goes here
}
I think FB works the same way.
color=blue]subxero - admin at this place.[/color]