GetFileVersionInfo(sTargetFileName, 0, nInfoSize, pInfoBuf)) { delete[] pInfoBuf; return _T(""); } VS_FIXEDFILEINFO* pFileInfo = nullptr; UINT nFileInfoSize = 0; if (!VerQueryValue(pInfoBuf, _T("\\"), (LPVOID*)&pFileInfo, &nFileInfoSize)) { delete[] pInfoBuf; ...
VS_FIXEDFILEINFO *VInfo; UINT i; char *buf; int ma,mj,r,b; CString sReturn = ""; i = GetFileVersionInfoSize(szAppPath, 0); buf= new char[i]; if (GetFileVersionInfo(szAppPath, 0, i, buf) != 0) { if (VerQueryValue(buf,_T("\\"),(LPVOID*)&VInfo,&i)) { ma = VInf...
1.用GetFileVersionInfoSize()函数获得VS_VERSION_INFO结构的大小。 2.用VS_VERSION_INFO结构大小创建一个足以保持该结构的缓冲区,然后用GetFileVersionInfo()函数获得它。 3.一旦有了VS_VERSION_INFO结构的本地副本,就用VerQueryValue()函数获得各个字符串。 4.在About对话框中显示字符串。 现在,你已经很好地理解...
CMFCToolBarInfo (clase) CMFCToolBarsCustomizeDialog (clase) CMFCToolTipCtrl (clase) CMFCToolTipInfo (clase) CMFCVisualManager (clase) CMFCVisualManagerOffice2003 (clase) CMFCVisualManagerOffice2007 (clase) CMFCVisualManagerOfficeXP (clase) CMFCVisualManagerVS2005 (clase) CMFCVisualManagerWindows (clase) CMFCVisu...
XP系统或低版本VS编译出来的结果: XP以上的系统并且高版本VS编译出来的结果: 同时支持一次选择多个文件夹。代码的使用也超简单,调用一个函数即可。 Talk is cheap. Show me the code. //SelectPathDlg.h#pragmaonce#include<vector>/** hwndOwner: 父窗口句柄,multSel: 是否运行选择多个目录 ...
STYLE_3D_VS2005 Creates a tab control in the style of Microsoft Visual Studio 2005. STYLE_3D_ROUNDED Creates a tab control with rounded tabs in the style of Microsoft Visual Studio 2005. STYLE_3D_ROUNDED_SCROLL Creates a tab control with rounded tabs and scroll buttons in the style of Micr...
Most code that prevented more than one instance of an application relied on these classes, but, as of version 4.0, the classes are not registered until a window of that type is created. CustomWNDCLASS-based windows that rely on::GetClassInfoto retrieve class information from the MFC window ...
CMFCToolTipInfo class CMFCVisualManager class CMFCVisualManagerOffice2003 class CMFCVisualManagerOffice2007 class CMFCVisualManagerOfficeXP class CMFCVisualManagerVS2005 class CMFCVisualManagerWindows class CMFCVisualManagerWindows7 class CMFCWindowsManagerDialog class CMiniFrameWnd class CMonikerFile class CMonthCalCtrl cla...
CComBSTR bstrVersionInfo; // Contains the version string. CComPtr<IWMPPlayer> spPlayer; // Smart pointer to IWMPPlayer interface. hr = spPlayer.CoCreateInstance( __uuidof(WindowsMediaPlayer), 0, CLSCTX_INPROC_SERVER ); if(SUCCEEDED(hr)) ...
35if(!dwVerInfoSize) 36{ 37printf("Function <GetFileVersionInfo> unsuccessful!, ErrorCode:%d\n", ::GetLastError()); 38return"Error"; 39} 40 41HANDLE hMem; 42LPVOID lpvMem; 43unsignedintuInfoSize=0; 44VS_FIXEDFILEINFO*pFileInfo; ...