> Thanks for replying. But then I try using pInitSW with the same
> parameters as pSWInit, Labview crashes with an invlaid page fault.
> The paramaters I used were no inputs and a 16-bit integer output which
> corresponds to "int pascal far" in C (I have no idea what int pascal
> far is, so i assume its an integer).
> The calling convenction is set to "C"
Actually, I think that the return value should be marked at I32 rather
than I16. I'm not in front of a PC, but Pascal indicates that the
parameters are expected to be pushed in order rather than backwards and
it expects the caller to clean up the stack rather than the callee. If
there is a pascal choice under calling conventions, use that instead.
If not, look up the other in the ma
nual or online help and see which
corresponds to Pascal.
Greg McKaskle