MFC: diff functionality

Posted on 2011-02-10
Last Modified: 2012-05-11
Dear experts,

Could you please suggest where I can find code to add a file comparing functionality to my MFC application? I found some on internet, but could not make them work for me.

Question by:tantormedia
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 86

Accepted Solution

jkr earned 500 total points
ID: 34864580
Take a look at ("Diff tool"), it uses MFC and comes with full source code.

Author Comment

ID: 34864682
Thank you for your answer. This is one of those I have tried. Though it works when I build and run it as a separate solution, I cannot build it as part of my project.
typedef CTemplateArray <CFileLine*>            ArrayLines;
error C2143: syntax error : missing ';' before '<'
LVL 86

Expert Comment

ID: 34865095
What version of Visual Studio are you using?
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 86

Expert Comment

ID: 34865105
Oh, and which file/line was that?

Author Comment

ID: 34865129
I am using VC 2008, so the problem happens after conversion.
File FilePartition.h, line 45.
Of course, this is only the first error I got.
LVL 86

Expert Comment

ID: 34865211
Hm, there's simply a

#include "Templates.h"

missing in 'FilePartition.h' - that's it (for that error, and probably for a lot more).

Author Comment

ID: 34865688
Yes, that was it. Thank you very much. Now I can work on to make it really work for me.

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question