I am working on a project in which I have created a property sheet, I am using 3 property pages in that. Now it happens that it perfectly displays in Windows xp (72 DPI default ), but if I run it on higher DPI than 72 DPI, controls starts disturbing. Many of the controls will hide.
I have one list control and 3 buttons on that which I have created manually (Hard-coded), not created on any dialog. I am facing big problem in setting the position of that List Control and 3 buttons.
Please let me know if anyone have any suggestions about this.
Are you running a 64 bits version of Windows? For 32 bits versions running under 64 bits windows the HKEY_LOCAL_MACHINE\Software forks to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node, which could be what causes the file not found if you spelled it correctly (spaces and all).
I have 2 tabs in my program on first tab i have 10 MFCEDitBrowse control
and on second tab I have calculate button when ever
i clicked on calculate button it should called .exe file and input for .exe file is
selected files in mfceditbrowse control on (tab1).
selected files are not fixed it is between 1 to 10.
Please help me out I dont understand how i can give filename(with path) from mfceditbrowse
(dlg1) to .exe file (dlg2)
I don't understand where the problem is. Just create a string with the file names from your browse controls and pass this string as parameters to ShellExecute(). When creating the string, separate the file names by spaces and quote them using double quotes when they contain spaces:
void CMyClass::AppendFileName(CString& str, LPCTSTR lpszFileName) const
bool bMustQuote = _tcschr(lpszFileName, _T(' ')) != NULL;
str += _T(' ');
str += _T('"');
str += lpszFileName;
str += _T('"');
// Get file names from browse controls and append them
strFileName = GetNameFromBrowseControl1();
// Repeat this for all browse controls
// Pass strParameters to ShellExecute()
ShellExecute(NULL, _T("open"), _T("myfile.exe"), strParameters.GetString(), NULL, SW_SHOWNORMAL);