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?
Technology Partners: 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

734 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