The VISA function in question is probably called viWrite(). Case does matter in C.
Also you do not seem to be using LabWindows/CVI so you should probably post in the Measurement Studio for VC++ board.
Where do you have problems? And what have you tried?