读取sql数据库中image类型,想让它在读成流格式时,利用用户机器中软件打开相应的扩展名文件,比如软件定位,打开时直接读取不想让下载后打开。不知能否实现?

解决方案 »

  1.   

    HINSTANCE ShellExecute(    HWND hwnd, // handle to parent window
        LPCTSTR lpOperation, // pointer to string that specifies operation to perform
        LPCTSTR lpFile, // pointer to filename or folder name string
        LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters 
        LPCTSTR lpDirectory, // pointer to string that specifies default directory
        INT nShowCmd  // whether file is shown when opened
       );
    ShellExecute(0,myfile,nil,nil,sw_show)