- Viewing Profile: Reputation: wack
Community Stats
- Group Members
- Active Posts 97
- Profile Views 924
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
User Tools
Contacts
wack hasn't added any contacts yet.
#5053984 What is mostly use multi flatform GUI library WXW? or something else
Posted by wack
on 16 April 2013 - 03:46 PM
wxWidgets is just a thin wrapper around the platforms native controls, so it will always use the native GUI widgets of the platform, while Qt simluates them instead. This can cause subtle differences between your program and other programs on the platform. If that is a big deal to you, wxWidgets might be better. If it's not, you could use Qt.
#5051037 What windows messages should a well behaved app support?
Posted by wack
on 07 April 2013 - 06:56 PM
More info here:
http://download.microsoft.com/download/1/E/9/1E9580D9-2B2B-499C-918A-C9BA5EAC4A32/Windows%207%20Client%20Software%20Logo.pdf
Precisely those messages needed to do its job - no more, no less.
Why even answer if that's all you have to say?
#5049739 Visual studio like app on MFC
Posted by wack
on 03 April 2013 - 04:32 PM
I'm glad that you are talking from experience. Most people who shout "MFC sucks" have never used it extensively. I used to be one of those people myself.Yes, it bloody is. Take it from someone who's worked professionally with it for over a decade.
I have worked with it professioanlly for six years. I have alwo worked with other toolkits. They all have quirks that make them suck in some way. Often these ways of suckage are the same as in MFC. Perhaps you could elaborate on what aspects of MFC it is that you think makes it suck so much more than other toolkits?
There could be lots of reasons. Perhaps you want write all of your program in one language? It's not like it's an order of magnitude more difficult to use MFC than to use winforms.So if you're only targeting windows, why wouldn't you use the infinitely better winforms?
I am not completely against using MFC for new projects today. It does make certain types of UI a lot easier to create than any other toolkit. Also, unlike what was claimed in this thread, MFC is just as supported as any other library that comes with Visual Studio, and it is still being actively developed. There also exists excellent third-party components (BCGsoft, CodeJock) for it that have been refined for a very long time, and contain some stuff that really doesn't exist for other toolkits.Yes, and if you have a legacy code base that uses MFC, that is exactly what you should do. If you're writing new code, use something else and leverage the huge library of code for that.
Of course, it would not be my first choice, but if the situation and type of application is such that using MFC could save a lot of time, I would at least seriously consider it. Shipping on time is a nice feature to have.
#5049606 Visual studio like app on MFC
Posted by wack
on 03 April 2013 - 10:40 AM
1) I looked up your question, and it seems that it's possible to do what you want:
http://msdn.microsoft.com/en-us/library/bb983663(v=vs.90).aspx
As for 2), I guess this is pretty much it:
http://msdn.microsoft.com/en-us/library/bb982354(v=vs.90).aspx
The MFC extension pack is based on components by BCGsoft, so looking at their documentation might help a little also.
#5049599 Visual studio like app on MFC
Posted by wack
on 03 April 2013 - 10:20 AM
Please don't use MFC for new code.
It's ancient, unsupported, non-idiomatic C++, and full of evil pitfalls and gotchas. It really needs to just go die in a corner somewhere.
It's not that terrible. If you only want to target Windows, it's perfectly fine. MFC is structurally pretty much like wxWidgets, but I never hear people complaining about that being evil.
In fact, you can save lots of time, as the OP is attempting to do, by using some of the ready-made stuff in MFC. It's pretty easy to set up a GUI that works exactly like some common MS programs (office, VS) and be done with it.
#5028176 vcredist_x86.exe for MinGW
Posted by wack
on 02 February 2013 - 04:10 PM
#5015571 A Proposal to Add Strong Type Aliases to the Standard Language
Posted by wack
on 29 December 2012 - 05:29 PM
I can see how this would be useful, but there was one (non technical) thing about the paper that didn't feel right.
"(The author of this proposal does not seriously endorse the use of macros for type aliases, and the
#5006031 Program install and uninstall files in c++
Posted by wack
on 01 December 2012 - 08:28 AM
#5004059 Code::Blocks "warning: deprecated conversion from string constant to ‘ch...
Posted by wack
on 25 November 2012 - 06:36 PM
Please, no religion
That's not one of the warning's I'd consider useless. Pointing a non-const pointer at const memory is bad juju. Why not just use a const char * instead?Half of the people will say one should rewrite everything to const char * the other half will say it's an insane idea and this topic will turn into a discussion about good coding practices.
I just want to know how to disable it
It's not really religion... It's just plain wrong. If you attempt to write to your char* that is actually a const char*, you might in fact crash your program.
Anyways... If you're sure what you are doing I will offer this little tip, although I haven't used Code::Blocks much.
There most certainly should be some kind of project option where you can specify custom command line arguments for the compiler. If you can't find any place in Code::Blocks to specify a custom command line, you could try adding it to your CXXFLAGS environment variable.
#4984870 SFINAE equivalent in C#?
Posted by wack
on 28 September 2012 - 03:27 PM
#4981453 Application Icon via Visual Studio showing on taskbar but not on title window
Posted by wack
on 18 September 2012 - 04:24 PM
#4981447 Is using a debugger lazy?
Posted by wack
on 18 September 2012 - 04:07 PM
Your professor is correct. Using a debugger to make poorly designed and written software just barely maybe work is lazy and an ineffective use of resources.
Using a debugger to analyze a problem or to learn how existing code works is appropriate use of the tool. Using it in place of understanding a problem or instead of thinking through and designing a solution is not.
This is absolutely true. I remember when I was a young lad learning to program. I used the debugger a lot. Then one day I wanted to try and see how it is to do without all the fancy stuff, so I started a project using Emacs and GCC. Because GDB is pretty cumbersome to use in comparison to "some other" debuggers, I only used it when absolutely necessary.
Needless to say, I learned a lot from that project. Another way of thinking, you could say. A way of thinking that has helped me when coming back to the "fancy" tools. It's hard to explain exactly what I mean, but it has caused more defensive programming, and when something is wrong, a quick browse around the code is usually all it takes to figure it out.
For all people learning, I recommend doing some kind of learning project without too many "crutches" to try it out.
#4926426 Microsoft Authenticode / Code signing
Posted by wack
on 29 March 2012 - 01:58 PM
If you want digital signatures with trust (and from your first post I gather that you do), you need to use a certificate obtained from someone like Verisign and use it with the tool linked in my previous post.
#4899923 making an app prompt for administrator privilages
Posted by wack
on 05 January 2012 - 06:00 AM
If this is the case, you can do it in the manifest: http://msdn.microsoft.com/en-us/library/bb756929.aspx
- Home
- » Viewing Profile: Reputation: wack

Find content