MFC: diff functionality

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.

Thanks.
tantormediaAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
Take a look at http://www.codeproject.com/KB/applications/difftool.aspx ("Diff tool"), it uses MFC and comes with full source code.
0
 
tantormediaAuthor Commented:
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.
E.g.
typedef CTemplateArray <CFileLine*>            ArrayLines;
gives
error C2143: syntax error : missing ';' before '<'
0
 
jkrCommented:
What version of Visual Studio are you using?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
jkrCommented:
Oh, and which file/line was that?
0
 
tantormediaAuthor Commented:
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.
0
 
jkrCommented:
Hm, there's simply a

#include "Templates.h"

missing in 'FilePartition.h' - that's it (for that error, and probably for a lot more).
0
 
tantormediaAuthor Commented:
Yes, that was it. Thank you very much. Now I can work on to make it really work for me.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.