Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MFC: diff functionality

Posted on 2011-02-10
7
Medium Priority
?
367 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
[X]
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
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
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

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

Industry Leaders: 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!

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…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

721 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