|
OK. I'll try to use a loop in both methods and time them. Tks Iain.
|
|
|
|
|
I wish to know how to reduce the time taken by projects in a solution to load. I have over a 100 projcts in a solution and it takes too much time to load for the projects.
|
|
|
|
|
1. Can confgure VS so that not all projects got load. "Unload projects"
2. VS2008 is faster
3. Make subprojects were not all projects are included
Greetings from Germany
|
|
|
|
|
the sln file is version controlled one.
|
|
|
|
|
After the projects gets loaded there is some time spend in building something.
I think this is the ncb database. Is is a one time activity or each time I open a sln file after all the projects are build this ncb database is built from scratch.
|
|
|
|
|
Have you installed VS 2005 SP1?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I need to update the check on my menu item so created a message handler to my UPDATE_COMMAND_UI event. The code is as follows:
void CSpDlg::OnUpdateShowPeak(CCmdUI *pCmdUI)
{
pCmdUI->SetCheck( m_bShowPeakVoltage );
}
The menu item does not update, however. I'm I missing something?
Thanks.
|
|
|
|
|
If u need it before creating use the flags MF_CHECKED
You need to use DrawMenuBar() after you do any modification to the menu .
The CheckMenuItem function sets the state of the specified menu item's check-mark attribute to either selected or clear.
Good MSDN article
http://msdn.microsoft.com/en-us/library/ms647558(VS.85).aspx[^]
Vikas Amin
My First Article on CP" Virtual Serail Port "[^]
modified on Thursday, July 24, 2008 5:33 PM
|
|
|
|
|
I would suggest adding your command to a toolbar to see if that updates or not.
I see your command is in a dialog. Is this a formview? If it is a modeless window, the command messages may not be routing there. Try adding the updateui handler to whatever is your CMainFrame (look in CMyApp::InitInstance to see what is being assigned to m_pMainWnd.
Have a read / google about OnCmdMsg - it may give you the clues about message routing that help you.
Good luck - missing messages are not magic, but they can be a pain to track down.
Iain.
|
|
|
|
|
For a dialog, you need to handle the undocumented WM_KICKIDLE
message to get the command enablers working.
See: WM_KICKIDLE for Updating MFC Dialog Controls[^]
If you are tracking a popup menu, you may need to set the menu
item states before calling TrackPopupMenu(Ex).
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Is there a way to create a enum that contains 64 bit numbers or does the compiler always assume that an enum is an int?
for example:
enum MY_ENUM<br />
{<br />
VALUE = 0x10000000000000000,<br />
};
|
|
|
|
|
On my computer it gives
warning C4341: 'VALUE' : signed value is out of range for enum constant
but may be compiler specific
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Yes, I get the same error, and I want to know if there is a way around it...
|
|
|
|
|
sashoalm wrote: but may be compiler specific
Yes, it seems to be compiler specific accoring to the ISO standards:
The underlying type of an enumeration is an integral type that can represent all the enumerator values defined in the enumeration. It is implementation-defined which integral type is used as the underlying type for an enumeration except that the underlying type shall not be larger than int unless the value of an enumerator cannot fit in an int or unsigned int. If the enumerator-list is empty, the underlying type is as if the enumeration had a single enumerator with value 0.
Best Wishes,
-David Delaune
|
|
|
|
|
I believe the standard tells the compiler to implement it like an int...
maybe Nemanja (Trifunovic) could confirm
|
|
|
|
|
No luck on a 32 bit system with Visual C++ compiler, read this page [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I'm trying to automate mspaint to print some files, and I do this by sending WM_COMMAND / WM_LBUTTONDOWN / WM_LBUTTONUP messages. I can hide the main dialog by passing SW_HIDE to CreateProcess, but I don't know how to hide the modal Print dialog.
And is it better to use GDI+ or some other library to print the files instead? Will it be easier or harder? It must be able to support jpg, tiff, gif and png.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
You can use EnumWindows () http://msdn.microsoft.com/en-us/library/ms633497(VS.85).aspx[^] to go through all the open windows on your system.
For each one, you can examine its attributes (title, position, size) until you find the ones you're looking for. Then you can hide them.
GDI+ supports all the images types you mentioned.
|
|
|
|
|
Thanks, that works
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
|
Hi,
Thanks for posting. But why OpenGL? The files I want to print have nothing to do with 3D. Can OpenGL open png, jpg or gif files from disk?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
I've got an MDI application I'm working on which is set to use the CMFCVisualManagerOffice2007 black style which all works fine apart from any dialog boxes I launch from it which just use the standard XP style. Is there a way to get around this so they display in the same style as the rest of the app?
Apologies in advance if this is a monumentally dumb question - I'm fine with the complicated stuff, it's the simple bits I get stuck with...
|
|
|
|
|
I think you're out of luck.
There is a CDialogEx class, but as far as I can see, this is only used to specify a background colour/image.
|
|
|
|
|
I was afraid that was the case. Thanks anyway Rob.
I was expecting there to be a CMFCDialogWithBellsOn or something, but apparently not.
The thing I don't really understand is that you can create a dialog app with the Office 2007 styles, or you can create an MDI app with the Office 2007 styles, but if you launch a dialog box from that MDI app then it appears to use the standard OS style. Obviously the documentation is more than a little sparse and despite a great deal of time searching I've had no joy.
|
|
|
|
|
If a dialog app works, then there must be a way to do this - I am at home now, so can't check, but I'll look into it tomorrow.
I was a big fan of this stuff when it was BCG, so have spent a lot of time working with the MFC Feature Pack.
|
|
|
|