I'm finding resource which is about word automation in C++ ( Win32 API / MFC ) . But it's quite rare.
Are there a book or comprehend article about this ?. Thanks so much :)
Three links to get you started:
Microsoft Support about Office automation
Tutorial on Word automation
This StackOverflow question
This MSDN KnowledgeBase article is a good place to start.
Related
How to get drive letters which are not in use in system in MFC ?
Thanks.
This MSDN magazine article seems to cover this subject, giving you the complementary of what you are asking for.
The short answer is "not in MFC, but use the Microsoft Windows volume management functions".
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I was wondering is there an Microsoft alternative to MFC, except WinForms in GUI programming for Windows operating system ?
I dont want to use thirdparty (Borland/Qt/wxWindows) libraries. WinForms require .NET which is major problem (can't install .NET in destination machines) and MFC is traumatic to me...
Any alternative which would be close to Qt but Microsoft branded ?
I would appreciate any suggestions!
I too suggest WTL. Here is a list with some useful WTL links:
MSDN's ATL 3.0 Window Classes: An Introduction - for the basics.
WTL Articles by Chris Sells, Dharma Shukla, and Nenad Stefanovic part1 and part2. Nenad Stefanovic is the father of WTL.
Bjarke Viksoe's WTL projects. Bjarne has summed many of his small projects into a whole application, an IDE - BVRDE.
Code Project's WTL page. Watch out especially the articles written by Michael Dunn. VMware Workstation uses WTL and Michael Dunn works for VMware.
Clipcode's WTL Developer’s Guide (doc, pdf, source code).
WTL opensource applications, which one can study to see various implementation tricks:
Google's Chromium, source code here. The windows version uses WTL. I don't know if somebody has tried to extract the WTL framework from Chromium.
Programmer's Notepad uses WTL, source code here.
InfraRecorder uses WTL, source code here.
Try WTL. This library was originally created by Microsoft and then went open source. On the contrary with MFC, many developers report good experiences with it. It builds lighter executables, it is better structured than MFC, but also not so feature rich.
I don't think there's any. You can use pure WinAPI, ATL, WTL (in this case good luck!).
Why don't you want to use Qt? Its free, open source and very flexible tool.
Although I love it and have used it extensively, WTL is quite an effort to learn as the documentation isn't great. There are some great 'WTL for MFC Programmers' articles on Code Project which are an absolute must-read.
However, if you want something Qt-like from MS, then you're only left with MFC I'm afraid. OK, it's long in the tooth but with the addition of the VS2008 SP1 MFC Feature Pack you can create Office 2007-like apps complete with ribbons. This might be your best solution if only MS non-.NET tech is allowed.
There is not any. Do not waste your time for searching.
Any alternative which would be close to Qt but Microsoft branded
If by "close to Qt" you mean similar in design to Qt, then no - there is not. I use WTL and like it, but it is very different from Qt.
You could always go with the Windows API directly and bypass MFC.
I don't get it. If it isn't Win32 or MFC or Windows.Forms, then what you are looking for is by definition 3rd party.
All these people recommending WTL are recommending you download some third party project's toolkit and use it. That's fine, if that's what you are looking for. But if you do that, then I strongly suggest looking at Qt or wxWidget. The former for the most full-featured set you can get and the latter for drawing native widgets using a "more sane" API.
Aside: WTL may be downloadable from MS server, but its a far, far cry from a MS-supported technology. It is an unsupported add-on.
What are some good websites for Win32 SDK programming tutorials?
The generally accepted bible for Win32 is the Petzold book:
http://www.amazon.com/Programming-Windows%C2%AE-Fifth-Microsoft/dp/157231995X
It's not online, but worth purchasing if you're serious about Win32, IMHO.
The best online tutorial with regards to native Win32 programming would have to be The Forger's Win32 API tutorial.
This is my favorite: Win32 Programming by Rector & Newcomer It is massive and goes through all the basic concepts down to the nuts and bolts about Win32 programming.
BTW: Newcomer has a website also with examples (although more related to MFC) here
Absolutely Programming Windows, 5th edition by Charles Petzold.
If you really need a simple starter that will guide you through the basics. You can read "Windows Programming from the Ground Up" by Herbert Schildt. It will be a good forerunner to Charles Petzold. I read Herb Schildt first and then Charles Petzold, and I really was able to understand what Petzold was talking very easily.
Yes, Petzold book (98), Richter book (4), Win32 group for undocumented apis and Windows source code (wine, etc), and Russinovich book also..
Autohotkey source code: http://www.autohotkey.com/download/
Avoid tutorials (by kids for kids)
Read the Petzold + Richter + Adv. Win32 Group (news://nntp.aioe.org/comp.os.ms-windows.programmer.win32)
And avoid Newcomer (newbie in Win32, knows MFC only...)
You can find all the references and getting started tutorials for Win32 SDK programming at MSDN.
I am wondering what are the best community resources for MFC development- such as forums, IRC channels, etc. Currently the only resource I have for finding answered questions on MFC is using google which comes up with Codeproject results or the occasional result on MSDN or some other web page. Now that there is stackoverflow I am sure I will be asking more questions here, but else am I missing?
MVP Tips is a treasure trove of articles and information that relate to visual c++ and MFC. There's not much out there beyond codeplex and the Microsoft news groups/forums
You should also look at the microsoft.public.vc.mfc and microsoft.public.vc.language newsgroups, and the Visual C++ General and Visual C++ Language forums on MSDN, where there are some highly knowledgeable and helpful people. (It's a shame the MSDN forums aren't better designed - they should take a close look at StackOverflow.)
codeproject is my favorite web site
There is also an excellent book
irc #winprog on efnet
I am about to reenter the MFC world after years away for a new job. What resources to people recommend for refreshing the memory? I have been doing mainly C# recently.
Also any MFC centric websites or blogs that people recommend?
The best: The Code Project
For blogs: Your best bet would be the Visual C++ Team Blog.
For books: Programming Windows with MFC is one of the best book on the subject.
For tutorials: Simply search google for various tutorials on MFC.
There's lots of useful information here:
http://www.flounder.com/mvp_tips.htm
I would highly recommend my all-time favorite book: MFC Internals: Inside the Microsoft© Foundation Class Architecture
It is not a 'how-to' book — it is a 'how does it work' book.
Its been a long time since i did any MFC but back then it used to be
"MFC internals" + debug into the MFC code and find what happens which used to be the best resources on MFC
Samples used to be available from Code Project to quickly get you going.
The vital "how do I?" book is http://www.amazon.com/gp/reader/0201185377/ref=sib_dp_pt#reader-link
Codeproject is also invaluable, although many of the 3rd party controls there nowhave counterparts in the new MFC feature pack.
Books are one thing, but I always found that practice was the key with MFC. CodeGuru was my favourite destination to answer anything MFC-related.
There's also that new website. What's it called...that's it - StackOverflow!