Archive for the ‘Visual Studio’ Category

To generate Random float/double numbers in a given limit

Make Visual Assist X active on CUDA (*.cu) files in Visual Studio

To select a folder use the following code snippet where you want. BROWSEINFO stBrowseInfo; LPITEMIDLIST lpSelectedPid; TCHAR pszSelectedFolder[MAX_PATH]; stBrowseInfo.hwndOwner          = m_hWnd; stBrowseInfo.pidlRoot           = NULL; stBrowseInfo.pszDisplayName     = pszSelectedFolder; stBrowseInfo.lpszTitle          = _T( “Select Your Folder” ); stBrowseInfo.ulFlags            = BIF_RETURNONLYFSDIRS ; stBrowseInfo.lpfn               = NULL; stBrowseInfo.lParam             = 0; lpSelectedPid                   = SHBrowseForFolder( &stBrowseInfo ); SHGetPathFromIDList( lpSelectedPid, pszSelectedFolder ); m_csFolderName                  = [...]

Welcome to the World of Creativeness. This is my first post. In Visual Studio 2003, 2005 and later Make sure you should add Common Control Manifest (in 4th Step, 6th check box) while creating a new project (VS 2005) if you unchecked this Common Control Manifest then you should manually add //#ifdef _UNICODE #if defined [...]