Solved

MFC: diff functionality

Posted on 2011-02-10
7
364 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 500 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
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!

 
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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++.

696 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