//MSL.h #include #include extern "C"{ __declspec(dllexport) int test_ret(); //used to test dll communication, returns value in test_number __declspec(dllexport) int test_inc(); //used to test dll communication, test_number and returns the new value __declspec(dllexport) unsigned long initialise(); //initialise communication with controller, returns 0 if successful, else returns error code __declspec(dllexport) unsigned long closeComms(); //closes communication with controller, returns 0 if successful, else returns error code __declspec(dllexport) unsigned long enableAxes(); //enables x, y, and z axes. returns 0 if successful, else returns error code __declspec(dllexport) unsigned long disableAxes(); //disables x, y, and z axes. returns 0 if successful, else returns error code __declspec(dllexport) int errorHandle(); //used to handle errors inside the dll, outputs a log file with errors etc __declspec(dllexport) int logOutput(std::string &msg); //used to output various information such as status and errors to log.txt __declspec(dllexport) unsigned long incX(long distance, DWORD speed); __declspec(dllexport) unsigned long incY(long distance, DWORD speed); __declspec(dllexport) unsigned long incZ(long distance, DWORD speed); __declspec(dllexport) unsigned long moveMAbs(PLONG plTargArray, PDWORD pdwSpeedArray); __declspec(dllexport) unsigned long getMAxisPV(PDOUBLE &xPos, PDOUBLE &yPos, PDOUBLE &zPos, PDOUBLE &xVel, PDOUBLE &yVel, PDOUBLE &zVel); }