Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MFC: diff functionality

Posted on 2011-02-10
7
Medium Priority
?
368 Views
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.

Thanks.
0
Comment
Question by:tantormedia
  • 4
  • 3
7 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 2000 total points
ID: 34864580
Take a look at http://www.codeproject.com/KB/applications/difftool.aspx ("Diff tool"), it uses MFC and comes with full source code.
0
 

Author Comment

by:tantormedia
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.
E.g.
typedef CTemplateArray <CFileLine*>            ArrayLines;
gives
error C2143: syntax error : missing ';' before '<'
0
 
LVL 86

Expert Comment

by:jkr
ID: 34865095
What version of Visual Studio are you using?
0
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

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

Author Comment

by:tantormedia
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.
0
 
LVL 86

Expert Comment

by:jkr
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).
0
 

Author Comment

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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

877 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