It is strange that you are able to get some of the Measurement Studio functions working but not the Math functions. We can check to see which library directories are setup for your Visual Studio environment. From Visual Studio 2003 goto Tools -> Options... Select the Projects -> VC++ Directories. Choose Show directories for Library files. Make sure that you have the following directories listed:
C:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Instr
C:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Lib
If they are listed, you may try changing the order. Make sure that Instr is higher than Lib in the list.
Let me know if this fixes your issue.
Thanks,
Tyler Tigue
NI