Page 1 of 1

Posted: Thu Aug 23, 2001 9:24 am
by BackupUser
Restored from previous forum. Originally posted by richard.

hi,

i need some help and i hope you all can.
how does one deal with this situation?

prototype of a "c functon"

void *NewFunction(unsigned long hint, unsigned char threshold, int cmp(const void *x, const void *y), int hash(const void *key, const int hashsize));

pb capsule:

extern _stdcall long *PB_NewFunction(unsigned long hint, long *hash, long *cmp, int threshold)
{
return NewHash(hint, threshold, cmp, hash);
}

; First line: the langage (C or ASM)
C
0
; The title of the library (not requiered)
;HashTables
; The command list. The command syntax is: Name, Arg1, Arg2, ...
; Arguments can be: 'Byte', 'Word', 'Long' or 'String'
NewFunction, long, long, long, word
long

what would that look like with function pointers??
furthermore, what does the descriptor file look like if there is no return value? must there always be something returned? how does one deal with function pointers?

regards

richard

Posted: Thu Aug 23, 2001 10:39 am
by BackupUser
Restored from previous forum. Originally posted by richard.

hi,

correction: (!!!!!)


void *NewFunction(unsigned long hint, unsigned char threshold, int cmp(const void *x, const void *y), int hash(const void *key, const int hashsize));

pb capsule:

extern _stdcall long *PB_NewFunction(unsigned long hint, long *hash, long *cmp, int threshold)
{
return NewFunction(hint, threshold, cmp, hash); (!!!!!)
}



hi,

i need some help and i hope you all can.
how does one deal with this situation?

prototype of a "c functon"

void *NewFunction(unsigned long hint, unsigned char threshold, int cmp(const void *x, const void *y), int hash(const void *key, const int hashsize));

pb capsule:

extern _stdcall long *PB_NewFunction(unsigned long hint, long *hash, long *cmp, int threshold)
{
return NewHash(hint, threshold, cmp, hash);
}

; First line: the langage (C or ASM)
C
0
; The title of the library (not requiered)
;HashTables
; The command list. The command syntax is: Name, Arg1, Arg2, ...
; Arguments can be: 'Byte', 'Word', 'Long' or 'String'
NewFunction, long, long, long, word
long

what would that look like with function pointers??
furthermore, what does the descriptor file look like if there is no return value? must there always be something returned? how does one deal with function pointers?

regards

richard