I had the same issue with the fluid demo i posted:
Code:
VECTOR* Vec;


made mouse3d() function crash, but
Code:
VECTOR Vec;


worked.
Took me ages to find out that VECTOR* is a pointer and VECTOR actually exists.
If i had found this thread earlier i could have helped you..