I'm not quite sure what you want, but if you want to convert radians to -180 - +180 , you have to do a bit more code. First of all, does the dll return radians only in range 0 - 2*pi or can it be anything? If it's only in the range then this will do:
angle# = radians * 180/pi If angle > 180 then angle = angle - 360