|
I take it there are tons of functions being called by these menu items that are technically the same, but are just applied on different data, with different options, in different modes of operation, etc.. Provided this is true, you should seriously consider all these entries to be replaced by a call to just one dialog box that lets you select all the extra parameters you need. Do that with all menu of your current menu items and see how many individual function calls you end up with - I bet it's less than a 100. If not then this is the most weird application I've ever heard of, apart from MS Word.
|
|
|
|
|
Please consider usability, especially when designing UIs.
I've come to understand that UI design is very involved and it is a winning factor between competing products.
You must first think if you yourself will use such a software.
In this case think of selecting a random menu item every minute.
Run that through your mind for some time and see if you give up using it.
|
|
|
|
|
yogish293 wrote: pls give me some inputs..
You already have so many...
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]
|
|
|
|
|
Think the main rule is that if the user have more than 8 menu items to choose between, then you should consider redesigning the GUI.
|
|
|
|
|
yogish293 wrote: i have more than 10 thousand items with more than 100 hierarchy level, creating contextmenu on right click giving problem
What is the problem?
|
|
|
|
|
Oh MyGod, Does not the sytem error?
|
|
|
|
|
Hi All,
i want a library/dll through which i can convert jpeg images to mpeg4 video format and vice versa.
i googled and found FFMpeg, many sample codes use the exe and do the conversions; i donot want that way, i want any library/dll to be linked to my project and then i will be using the api(s) directly!
Can you please suggest me any open source like or easier that FFMpeg?
Note i am doing this in VC++!
Regards,
Kapardhi
|
|
|
|
|
Generally a list control keeps two states of check box CHECK and UNCHECK
i want 3 states of check box in list control. Is there any sample to use more than one state of check box in list control?
how to do it?
|
|
|
|
|
MKC002 wrote: how to do it?
Have you checked here?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi All,
Im working on Porting project.
We are porting from VS2005 to VS2010.
In one of the project contains the following code snippet
ifstream infile;
infile.fd();
But i cant find any equivalent code for this file descriptor in VS10.
Please help me to solve this.
Thanx.
|
|
|
|
|
Hello everyone, if the file csFilePath opened by other application. The statement, SHGetFileInfo() will throw exception. who knows how to resolve it?
SHFILEINFO sfi;
SHGetFileInfo((LPCTSTR)(csFilePath), 0, sfi, sizeof(SHFILEINFO), SHGFI_PIDL| SHGFI_SYSICONINDEX | SHGFI_ICON);
if (sfi.iIcon != 0)
m_ListCtrlLocalFileList.SetItem(i, 0, LVIF_IMAGE, NULL, sfi.iIcon, 0, 0, 0);
if(sfi.hIcon)
DestroyIcon(sfi.hIcon);
|
|
|
|
|
What kind of exception did you get (I see no exception mentioned in documentation)?
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]
|
|
|
|
|
yu-jian wrote:
SHGetFileInfo((LPCTSTR)(csFilePath), 0, sfi, sizeof(SHFILEINFO), SHGFI_PIDL| SHGFI_SYSICONINDEX | SHGFI_ICON);
You have passed an invalid parameter in the third field, it should be the address of the SHFILEINFO structure, thus:
SHGetFileInfo((LPCTSTR)(csFilePath), 0, &sfi, sizeof(SHFILEINFO), SHGFI_PIDL| SHGFI_SYSICONINDEX | SHGFI_ICON);
I must get a clever new signature for 2011.
|
|
|
|
|
when copy the code to the codeproject I delete this & signature.
But now the error dispear, after I set the sort property of the CListCtrl to none.
thank you for your reply.
|
|
|
|
|
Hi all
Recently, I learned how to split a window using CSplitterWnd and OnCreateClient.
In my application, I need different window layout (2X2 , 3X3)for different function modules.
function modules are invoked by clicking on a menu item.
I need to show different layouts when the use calling different function modules.
Thanks
|
|
|
|
|
This should work but I'm not sure.
Create 2 views initially.
In one do a 2x2 and in the other do a 3x3.
Now you can try to show/hide the parent view.
|
|
|
|
|
I am getting brave(r) in my old age in “pasting” libraries into my project.
(OpenCV does that to me anyway!)
What is a preferred way to include "external" files and link libraries?
Using compiler command line parameters / options or using #pragma ?
I am using both methods and getting rather confused when debugging the mess I create.
Comments?
In this case I'll make an exception – any comments are welcome.
Thanks for your time.
Cheers Vaclav
|
|
|
|
|
Always use compiler options, #pragma's aren't portable in any sense of the word. If you stick to command line options then you're reducing the amount of vendor lockin you have to cart about. In my experience it's far easier modifying a makefile (or making a new one for a new compiler) than changing a shed load of source files to cope.
Cheers,
Ash
|
|
|
|
|
To link in libraries, the header files that require the library use #pragma to include the library. I do not use compiler options since I do not want to include libraries that I do not need or might not need in the future if I no longer use a specific header. Another reason I prefer not to use compiler options is that I have had a lot of extra work porting Visual C++ to newer editions when some compiler options such as include directories were thrown out.
Note that you should also might use #pragma message to list libraries that have included when you set a particular preprocessor flag. This would make porting to another compiler that does not support #pragma easier.
When I do use compiler options, I use one of a few .props files with some project specific settings for things like preprocessor macros. I do not modify project settings via the GUI provided with Visual C++, except for a handful of options that do not load properly from props files.
|
|
|
|
|
You have not mentioned whether you're developing cross-platform software or not. If true, your choice is clear: no way around makefile based compiler options. Platform (or better Win32) specific #pragmas-based configurations (if well done) are very comfortable to use (*). Think of boost configured for Windows, it just works with no problems and no need to mess around with build environment.
(*) I have to admit, I didn't like to be the guy who is responsible for writing the config-mess insinde the boost framework, that's the drawback of this kind of configuration. Changes to these "source" files are usually very fragile and difficult to test.
|
|
|
|
|
Sorry for the important omission.
As a hobbyist I use VC 6.0 and MFC and have no need for any other platform.
I briefly ventured into Linux and found the development process "challenging". I realize that there are plenty of feedback from various Linux development sources, as oppose MS stuff, but...
For my applications , I am relatively happy with VC6.0
I should also add that I try to keep all the #paragma stuff in StdAfx header file.
It just helped me to find a rather difficult error by allowing me to switch different libraries.
Thanks for all your input.
Vaclav
|
|
|
|
|
Is there a place (file) where I can see the entire command line parameters / options ?
Project Setting gives compiler and linker.
I would like to learn more about pre / post build steps etc.
Thanks for reading.
Cheers Vaclav
|
|
|
|
|
|
Why is this code placed at the begining of the .cpp file ignored by the compiler?
Anything to do with “precompiled headers” project option in VC 6.0?
Here is the snippet.
#pragma message( "Compiling " __FILE__ )
#pragma message( "Last modified on " __TIMESTAMP__ )
#include <cvhaartraining.h>
Works fine from here on
#include "stdafx.h"
#pragma message( "Compiling " __FILE__ )
#pragma message( "Last modified on " __TIMESTAMP__ )
#include <cvhaartraining.h>
....
Thanks for reading.
Cheers Vaclav
-- Modified Saturday, January 8, 2011 2:53 PM
|
|
|
|
|
It'll work if you force a rebuild (Build>Rebuild all) or delete the intermediate files first (Build>Clean).
Otherwise the compiler will recognise that part of the file hasn't been modified and won't be processed unless you force it to.
modified 13-Sep-18 21:01pm.
|
|
|
|