Chapter 3 Programming Demos  RIGOL 
MSO1000Z/DS1000Z Programming Guide  3-15 
Visual C++ Programming Demo 
 
The program used in this demo: Microsoft Visual C++ 6.0 
 
The functions realized in this demo: search for the instrument address, connect the instrument, send 
command and read the return value. 
 
Enter Visual C++6.0 and operate according to the following steps:   
 
1.  Create a MFC project based on dialog box.  
 
2.  Open the C/C++ tab in ProjectSettings, select Code Generation in Category and Debug 
Multithreaded DLL in Use run-time library. Then, click OK to close the dialog box. 
 
 
3.  Open the Link tab in ProjectSettings and add visa32.lib to the Object/library modules 
manually.