Sample Code

ExportBag is executed from a hot spot in the sample Viewer title DLLDEMO.MVB. This sample title was described earlier in this chapter. Like the HelloWorld function earlier in this chapter, ExportBag is registered as a Viewer command in the project file DLLDEMO.MVP as follows:

RegisterRoutine("dlldemo","ExportBag","SSSU")

The hot spot in the DLLDEMO.MVB title that executes ExportBag is coded as follows:

Call ExportBag- (copy out foo.tmp bag file to bar.tmp).!ExportBag(qchPath,"foo.tmp","bar.tmp",0)

Note:

To debug your DLL or observe any of the operations described in this section, you can compile DLLDEMO for the CodeView for Windows symbolic debugger and open the DLL in CodeView while you view the sample title. See the DLLDEMO.C file for specific instructions.