char * _stdcall get_version(int display_message_box); short _stdcall init_prodtest(int transport, char * transportDevice, long dataRate, short DMcommands); short _stdcall close_prodtest( long handle); short _stdcall do_slave(long handle); /* In VEE there is no BOOL (or boolean) and no unsigned short/long , long integer == long (like C++) == int32 . It will work as well if you replace 'short' by 'int' . As far as I can say without knowing the DLL this should work. */