|
Because Microsoft probably does something like taking the checksum of the path and file, so that if there any changes to the file or location... most likely it will need to be recompiled. Since you are moving all of your files, all files have changed. Cheers!
<><><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
|
|
|
|
|
No, MSDEV will not recompile, as it simply does a touch (Unix word for last modified date comparison).
And I swallow a small raisin.
|
|
|
|
|
If any of your projects create COM objects, the build process automatically registers them. The registration process places entries in the registry that associate the class and interface ID's with your object, and the location of that object's code on disk. Therefore, when you move the object's code to a different place, Windows can no longer find it. Rebuilding the project re-registers the objects and fixes the problem.
Gary R. Wheeler
|
|
|
|
|
Hi,
I have a problem which can be reduced to the following question: how can I place programmatically the cursor to a given position in my view?
In more detail: I make some manipultions of the UI and at this time the focus in the main window gets lost. I tried
1. Setting focus to the MainFrame
pFrame->SetFocus();
2. Setting focus to the view
pView->SetFocus();
3. Showing the caret at its previous position
pView->SetFocus();
pView->SetCaretPos(pointCaret);
pView->ShowCaret();
without success, the cursor remains lost.
Its about a CHtmlEditView.
Any help would be highly appreciated.
Thanks
R.
|
|
|
|
|
You'll need to use the SetCursorPos() function rather than SetCaretPos().
John
|
|
|
|
|
In my view class I have a CFileDialog:
int nRetMainDB = fileDlg.DoModal();
if (nRetMainDB == IDCANCEL)return;
Now if the user presses cancel I want the app to exit. With the return that I have above,
it doesnt terminate the program , just crashes! Why? and how do I exit?
Thanks,
ns
|
|
|
|
|
Maybe PostQuitMessage() will help you...
Gero
|
|
|
|
|
I usually do the following:
if (nRetMainDB == IDCANCEL) { exit(0); }
|
|
|
|
|
I appreciate both the responses. I implemented the PostQuitMessage(0) since I'd gotten it first and it seems to be doing fine! Thanks for the exit(0) too.
ns
|
|
|
|
|
I have a menu in a dialog but the accelerator keys don't work eg Alt-F does not drop down the file menu.
How do I make it work?
Thanks
Dave
Dave Huff
Igor would you give me a hand with the bags?
Certainly - you take the blonde and I'll take the one in the turban!
|
|
|
|
|
Works for me - I've created dialog-based app, added menus to main dialog and about box and everything works as expected.
Are you playing with PreTranslateMessage?
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
This is not a dialog based app but a dialog called by an SDI app. I am not touching PreTranslateMessage.
Dave Huff
Igor would you give me a hand with the bags?
Certainly - you take the blonde and I'll take the one in the turban!
|
|
|
|
|
I made a SDI application that opens a dialog (modal) with a menu.
work fine.
Are you using modeless dialogs?? (i did not try it)
Casa.Sapo.pt
|
|
|
|
|
for dialogs, you can load the accelerators yourself, in PreTranslateMessage:
BOOL ColorEditWnd::PreTranslateMessage(MSG* pMsg)
{
if (m_bUseKBAccel)
{
if ((pMsg->message == WM_KEYDOWN) && (pMsg->hwnd == m_hWnd))
{
HACCEL hAccel = LoadAccelerators( AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_EDIT_ACCELS) );
if (::TranslateAccelerator( m_hWnd, hAccel, pMsg ) )
{
return TRUE;
}
else
{
return CWnd::PreTranslateMessage(pMsg);
}
}
}
return CWnd::PreTranslateMessage(pMsg);
}
-c
Gourmet, n:
Anyone whom, when you fail to finish something strange or
revolting, remarks that it's an acquired taste and that you're
leaving the best part.
|
|
|
|
|
Please dont suggest loading the accels on every keystroke. Do it in OnInitDialog at least.
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
that step was left to the reader.
thanks for contributing.
-c
"I am angry that so many of the sons of the powerful and well-placed... managed to wangle slots in Reserve and National Guard units...Of the many tragedies of Vietnam, this raw class discrimination strikes me as the most damaging to the ideal that all Americans are created equal and owe equal allegiance to their country."
--Colin Powell
|
|
|
|
|
In a dialog based application all keyboard events go to the control that have the focus. If you do not have any control on the form then I am pretty sure it will work. To use keystrokes you must, as Chris said, override the PreTranslateMessage method.
Best regards,
Alexandru Savescu
|
|
|
|
|
When I click on an item in a listctrl, it doesnt make it highlighted and blue. How do I get this to happen?
|
|
|
|
|
Has the control focus while it doesnt make the selection highlighted and blue? The selection is not displayed in blue while the control isn't focused if the "Show selection allways" is not set.
Pavel
Sonork 100.15206
|
|
|
|
|
the "show selection always' did the trick. Many many thanks!
ns
|
|
|
|
|
I have a file that I read character by character. However, the file is scattered with '^Z' (control-Z) characters so the process stops at the first of them due to
end-of-file. Is there a way to ignore these characters and continue reading till I
reach the "real" end of the file?
Thanks!
|
|
|
|
|
You need to open the file in binary (not text) mode. Are you using stdio or iostream?
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
Thanks! That solved the problem. (I'm using iostream.)
|
|
|
|
|
HI ALL
I'm searching for code posted between 12 Aug 2002 and 19 Aug 2002 on CodeProject.
The article title: Exclusive Drag Drop enabled Tabbed Control
Does anybody have source for this article ??
If yes, please send me it.
|
|
|
|
|
I'm having a problem running my executable. The project has compiled and built successfully, but once I try to execute it, I receive the error message "The memory could not be written". If I debug, I receive an Unhandled Exception error, with Access Violation on NTDLL.DLL.
Please help! How do I grant myself write access to this file? I am the administrator of my machine.
Thanks!
Cintia
|
|
|
|