Just add 2 strings to your dialog box class. Either make them public or write accessor functions. After DoModal returns your dialog object is still valid and you get the values via dlg.GetValue1(), dlg.GetValue2(). A vast majority of our imports comes from outside the country. George W. Bush
solex
Posts
-
Returning from Dialogbox -
using timersHe doesn't - he as ID_CLOCK_TIMER and ID_COUNT_TIMER but they both seem to have the same value. A vast majority of our imports comes from outside the country. George W. Bush
-
add file to project problem.Just do a Rebuild all after having added StdAFX.h A vast majority of our imports comes from outside the country. George W. Bush
-
Disable Close Button in the Dialog's CaptionWhat do you mean by "in the caption" Would GetDlgItem(ID_CLOSE)->EnableWindow(FALSE); do? A vast majority of our imports comes from outside the country. George W. Bush
-
Better than the Startup folderI'd say the \\Software\\... should be just Software\\..... A vast majority of our imports comes from outside the country. George W. Bush
-
Access Database woes...Are you sure that your database could be opened? You are not checking the return value. The rest of the code is fine, but there is no need for a CRecordset. What does the error string say? A vast majority of our imports comes from outside the country. George W. Bush
-
Capturing F10Hi I did this using OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) .. if (VK_F10 == nChar) .. and it works fine. Use ::GetKeyState to find out about Alt, Ctrl and so on
-
CListCtrlHi solved it by first inserting a 0 width column - seems to work just fine. Thank you all Solex
-
CListCtrlHi using the style LVCFMT_RIGHT in CListCtrl::InsertColumn(..) will right justify any text in any but the first column. Anybody knows about that - is that by design or a bug and how could I get my first column right justified? Thanks for any help Solex
-
How do I Set the default Location for Saving Files??No this means that you do a GetCurrentDirectory SetCurrentDirectory, do your file saving and return to the directory that you retrieved with GetCurrentDirectory. But anyway, as you never can be sure what the current directory is, unless you set it yourself,you should never try to read/write without an exact directory location and temorary files should go into the TEMP variable or the winnt\system.
-
How do I Set the default Location for Saving Files??SetCurrentDirectory The SetCurrentDirectory function changes the current directory for the current process. BOOL SetCurrentDirectory( LPCTSTR lpPathName // pointer to name of new current directory ); Parameters lpPathName Pointer to a null-terminated string that specifies the path to the new current directory. This parameter may be a relative path or a fully qualified path. In either case, the fully qualified path of the specified directory is calculated and stored as the current directory. Return Values If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError. Remarks Each process has a single current directory made up of two parts: A disk designator that is either a drive letter followed by a colon, or a server name and share name (\\servername\sharename) A directory on the disk designator