Image Example VC++

This example shows how to set the Image property using a variety of path and file name formats.

void CImgEdit1Dlg::OnImage() 
{
    // Examples of syntax for the Image property
    // The single slashes in the name can be forward or back.
    
    // Windows filename
    ImgEdit1.SetImage("c:\\insurance\\claims\\claim234.tif");

    // Showing syntax for 1.x Server document
    // Note: prefix Image:// denotes service name for 1.x server
    ImgEdit1.SetImage("Image://srvrname\\volname:\\CABNAME\\DRAWERNAME\\
     FOLDERNAME\\YOUR DOC");
   
    // Showing syntax for 1.x Server filename with a volume name mapped.
    ImgEdit1.SetImage("Image://srvrname/volname:/dirname/temp.tif");
    
    // Showing syntax for 3.x Server document
    // Note: prefix Imagex:// denotes service name for 3.x server
    ImgEdit1.SetImage("Imagex://docid1234");
   
    // URL syntax
    ImgEdit1.SetImage("http://www.eastmansoftware.com/sbu/sampimg.tif");
    
    // UNC filename
    ImgEdit1.SetImage("\\\\srvrname\\shared3\\images\\bw\\thisisa.tif");

}