因工作需求,开发一个dll,支持全屏截图.可以根据参数的传递保存为多种格式.dll功能可以根据需求自行扩展调用方法如下//加载模块HMODULEm_hinst;m_hinst=LoadLibrary(_T("capture.dll"));typedefint(*lpCatureFunc)(LPCSTR,LPCSTR);lpCatureFuncmyFunc;myFunc=(lpCatureFunc)GetProcAddress(m_hinst,"Capture"); myFunc("C:\\MyCapture",".png");myFunc("C:\\MyCapture1",".gif");myFunc("C:\\MyCapture2",".jpg");
1