Click here to Skip to main content
15,868,164 members
Articles / Desktop Programming / MFC
Article

Replace in Files AddIn

Rate me:
Please Sign up or sign in to vote.
4.11/5 (5 votes)
24 Aug 2000 98.6K   2.3K   26   18
Search and Replace in multiple files Add-in for Visual C++ 6.0
  • Download add-in DLL - 22 Kb
  • Download source project - 60 Kb
  • Sample Image - replaceinfiles.gif

    I find this add-in very useful for any Visual C++ programmer. I also included source code for you to modify and improve.

    The add-in searches for the word you supply and replaces it in all the files in the selected directory and it's subfolders.

    After downloading the demo project enter Visual C++ 6.0 IDE and right-click on the toolbar and choose Customize. Click on the AddIns and Macro Files Tab and browse to the Replace.dll file in the Release directory of your project..

    Update

  • Download AddIn - 24 Kb
  • Sample Image

    Version 1.2 includes lots of bug fixes and improvements (Ed. - no source code was provided, so the source code provided here is for version 1.0)

    The addin searches for the word you supply and replaces it in all the files in the selected directory and it's subfolders, having the extension you select or enter in the Files type/types combo box.

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    Written By
    Software Developer
    United States United States
    This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

    Comments and Discussions

     
    GeneralFind - Replace in Visual Studio Project Pin
    gjr9-Nov-06 17:24
    gjr9-Nov-06 17:24 
    QuestionRe: Find - Replace in Visual Studio Project Pin
    marren11-Nov-06 10:29
    marren11-Nov-06 10:29 
    I actually did take a look at your utility, only to come across the following functionality...

    =============================================================
    FR run at 10:19:57.320pm on 11NOV06
    Find this text: 'aaa'
    Replace it with: 'bbb'
    Match Case, Whole Word match (Include Subdirectories)
    # # # EVALUATION Version Only - No Changes written to files # # #
    -------------------------------------------------------------

    What the f**k?! You think that wouldn't stop people from wasting their time with this hidden commercial or something?
    GeneralSuggestion: All Project Files Option Pin
    gjr18-Aug-04 19:32
    gjr18-Aug-04 19:32 
    GeneralBug: the path can be no longer than 28 Pin
    Joel Holdsworth8-Apr-02 22:08
    Joel Holdsworth8-Apr-02 22:08 
    GeneralRe: Bug: the path can be no longer than 28 Pin
    akovar22-Jul-03 4:57
    akovar22-Jul-03 4:57 
    General"Whole word" is bugged Pin
    Mickael Pointier11-Dec-01 3:50
    Mickael Pointier11-Dec-01 3:50 
    Generalin project only check Pin
    5-Aug-01 23:59
    suss5-Aug-01 23:59 
    GeneralBug Report: Path can't longer than 28. Pin
    14-Jul-01 14:28
    suss14-Jul-01 14:28 
    GeneralBug report Pin
    11-Feb-01 0:55
    suss11-Feb-01 0:55 
    Questionsource code and web site? Pin
    Aaron Sulwer7-Feb-01 9:37
    Aaron Sulwer7-Feb-01 9:37 
    GeneralDoes not work! Pin
    kaizen25-Aug-00 3:51
    kaizen25-Aug-00 3:51 
    GeneralGood idea but poor execution Pin
    JacksonBrown19603-Feb-00 9:14
    JacksonBrown19603-Feb-00 9:14 
    GeneralSuggestions for Improvements Pin
    Uwe Keim3-Feb-00 2:52
    sitebuilderUwe Keim3-Feb-00 2:52 
    GeneralRe: Suggestions for Improvements Pin
    Mark Findlay3-Feb-00 7:16
    Mark Findlay3-Feb-00 7:16 
    GeneralRe: Suggestions for Improvements Pin
    Daniel 20004-Feb-00 4:22
    Daniel 20004-Feb-00 4:22 
    GeneralRe: Suggestions for Improvements Pin
    Rehan Ahmad8-Jun-00 4:53
    Rehan Ahmad8-Jun-00 4:53 
    GeneralRe: Suggestions for Improvements Pin
    Christian Hansen6-Jul-00 23:25
    Christian Hansen6-Jul-00 23:25 
    GeneralWell done Pin
    Member 14973-Feb-00 2:36
    Member 14973-Feb-00 2:36 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.