///
/// win32 dll 函数动态封装调用
///
///
/// bool flag = false;
/// // 构造时导致 dll 被加载, 借助 using 块, 在离开时释放 dll
/// using (CDCWrapper wrapper = new CDCWrapper())
/// {
/// flag = wrapper.GetLastVerFile(163, "192.168.0.135", "", 0, "ccir", "1B2M2Y8AsgTpgAmY7PhCfg==", "d://1.dwg");
/// MessageBox.Show(flag.ToString());// 这个提示的时候 dll 还在内存中
/// }
/// MessageBox.Show(flag.ToString());// 这个提示时, dll 已经被卸载出内存了
///
class CDCWrapper : IDisposable
{
public CDCWrapper()
{
loadLibray();
}
/// win32 dll 函数动态封装调用
///
///
/// bool flag = false;
/// // 构造时导致 dll 被加载, 借助 using 块, 在离开时释放 dll
/// using (CDCWrapper wrapper = new CDCWrapper())
/// {
/// flag = wrapper.GetLastVerFile(163, "192.168.0.135", "", 0, "ccir", "1B2M2Y8AsgTpgAmY7PhCfg==", "d://1.dwg");
/// MessageBox.Show(flag.ToString());// 这个提示的时候 dll 还在内存中
/// }
/// MessageBox.Show(flag.ToString());// 这个提示时, dll 已经被卸载出内存了
///
class CDCWrapper : IDisposable
{
public CDCWrapper()
{
loadLibray();
}
#region public function wrappers
public bool GetLastVerFile(int nFileId, string strServerIP,
public bool GetLastVerFile(int nFileId, string strServerIP,