hello salman,
since "BOOL" is not a C type, it is necessary to get the size of one single "BOOL" ( sizeof(BOOL) ).
this determines, which type of integer you use as equivalent.
then you pass an array of this type to the DLL function.
what is the error message, when the system crashes?
check the right calling convention for your DLL;
i cannot reproduce the behaviour, since i don't a DLL with a BOOL parameter to test with.
regards,
robert h
national instruments