|
Why on earth would you put obj files in CVS?
Just put the stuff that isn't re-created automagically there.
(To add binaries you need to mark them as just that or else CVS will corrupt them).
|
|
|
|
|
Stefan Pedersen wrote:
Why on earth would you put obj files in CVS?
Well, when we first decided to use CVS, we didn't want to put obj files in it, but if we don't, each time I update my local project, I have to rebuild all, which takes a long time. How did you managed to solve this problem ?
Thanks for your answer !
Jerome
|
|
|
|
|
You shouldn't need to rebuild all.
Only the files needed should be rebuilt (you seldom update the whole project).
I would check the clock on all the computers used for devel and CVS.
Something seems a bit fishy...
|
|
|
|
|
Maybe this page can help you?
Info: (cvs) Binary howto
It talks about using the -kb option when adding a file to the repository.
|
|
|
|
|
Hello,
I know there is function that escapes an URL (for example transforms "bla bla" to "bla%20bla")...
What was its name?
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
UrlCanonicalize
Takes a URL string and converts it into canonical form.
And there was me thinking it mean promoting to sub-bishop...
Iain.
|
|
|
|
|
Hmm, I couldn't find that function... it's in the shlwapi.lib file, but I don't have any header file that contains the function declaration...
Perhaps I need latest platform sdk...
Thanks for your reply!
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/path/UrlCanonicalize.asp
|
|
|
|
|
Would you believe... UrlEscape() .
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hmm, I couldn't find that function... it's in the shlwapi.lib file, but I don't have any header file that contains the function declaration...
Perhaps I need latest platform sdk...
Thanks for your reply!
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/path/urlescape.asp
|
|
|
|
|
Hi,
I was wondering if someone could help me disable a menu option.
Thank you for your help.
|
|
|
|
|
If you're using MFC, look up EnableMenuItem in the CMenu class documentation.
If you're not using MFC, just look up EnableMenuItem.
Jason Henderson "I can picture in my mind a world without war, a world without hate. And I can picture us attacking that world, because they'd never expect it."
- Jack Handey
|
|
|
|
|
Hi Jason,
I don't have MSDN installed on this computer, I only remember off the top of my head its something like :
EnableMenuItem((i think its the menuID?), Flags);
Can you or someone shed some light to get this done with MFC?
Thank you for your help!
|
|
|
|
|
Jay Hova wrote:
don't have MSDN installed on this computer
You can find it online at msdn.microsoft.com[^].
It is the one most valuable resource you need as a programmer. BTW - Your compiler came with a copy of MSDN.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
BOOL EnableMenuItem(
HMENU hMenu, // handle to menu
UINT uIDEnableItem, // menu item to update
UINT uEnable // options
);
or
// MFC CMenu
UINT EnableMenuItem(
UINT nIDEnableItem,
UINT nEnable
);
Jason Henderson "I can picture in my mind a world without war, a world without hate. And I can picture us attacking that world, because they'd never expect it."
- Jack Handey
|
|
|
|
|
I have only been programming for a month, so please be patient.
right now i am using the code i found on the msdn.microsoft.com site
CMenu* mmenu = GetMenu();<br />
CMenu* submenu = mmenu->GetSubMenu(0);<br />
submenu->EnableMenuItem(ID_FILE_NEW, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
I get the error that GetMenu doesn't take 0 parameters?
Can someone tell me whats wrong. I used similar code if not the same, to get a couple other menu options checked/unchecked and it worked fine. Don't understand why it doesn't work.
Oh yeah, I have no idea why msdn is not installed on this computer? its not my own.
|
|
|
|
|
You are mixing CWnd::GetMenu/CWindow::GetMenu and ::GetMenu
Win API: HMENU GetMenu( HWND hWnd );
From your mainframe class try calling GetMenu()...
Brian
|
|
|
|
|
I am calling this from my main class...
I don't get it. I have almost the same exact code right beneath it and it works. (this is the code that checks the menu options)
Thanks for helping
|
|
|
|
|
Hi,
I have a dynamically created ListBox in my MFC app.
After selecting a Item and Pressing Enter key, In the PreTranslateMessage() routine i try to get the GetCurSel()
But the index returned is -1.Pls help in this regard.
Thnks in advance
Ram
|
|
|
|
|
One possible reason is that windows calls PreTranslateMessage() before updating the control.
Kuphryn
|
|
|
|
|
Hi everyone!
I'm searching for source code of the video codec (h.263 compatible).
...actually i found one OpenMash project, but i don't know how to use their codec in VC++ application
If anybody know some sources & examples of video compression/decompression
source etc. please give me know
Pawel Olszewski (pandora_@wp.pl)
|
|
|
|
|
I have a program that needs to open and close and open and close several modal dialgos one after the other.
My first modal dialog goes great, but when I call the second one's doModal, it immediately closes.
I bet this is somehow related to a WM_QUIT remaining in the message-queue or something like that, but I can't really put my finger on it.
Can someone help ?
Thanks
|
|
|
|
|
Some more investigation brough up this solution:
After the first (and any other doModal()), do:
while (PumpMessage()) {};
AfxGetThreadState()->m_nDisablePumpCount--;
this will eat all messages up to and including the WM_QUIT (which increases m_nDisablePumpCount), we then ammend this counter and continue. (This counter is what causes the abrupt closure of any window to attempt and open.
Is there a cleaner solution (except for overriding PumpMessage and handling things different from inside there) ?
|
|
|
|
|
Read MSDN article Q138681.
|
|
|
|