Apply header programmatically
-
We have recently been tasked with modifying all of our .cpp, .h, and .c files to include a specialized header at the top of the files. Is anyone familiar with any application that apply this header programmatically and save us a lot of manual work?
-
We have recently been tasked with modifying all of our .cpp, .h, and .c files to include a specialized header at the top of the files. Is anyone familiar with any application that apply this header programmatically and save us a lot of manual work?
I don't know of any. But it shouldn't take more than a couple of hours to write one of your own. I would make a dialog based app that would let me select a file that contained the header I wanted and then let me browse for a folder where my source files were located. Making it more fancy, e.g. a tree view with checkboxes for all files, would probably take two more hours to make it work properly.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown -
We have recently been tasked with modifying all of our .cpp, .h, and .c files to include a specialized header at the top of the files. Is anyone familiar with any application that apply this header programmatically and save us a lot of manual work?
Maybe you can include it in your stdafx file if you use one ?
Cédric Moonen Software developer
Charting control [v1.1] -
We have recently been tasked with modifying all of our .cpp, .h, and .c files to include a specialized header at the top of the files. Is anyone familiar with any application that apply this header programmatically and save us a lot of manual work?
I have done this with a macro in the past - both in VC6 and in VS2005. It means you have to open each file in the editor and select the macro, but that's better then hand-typing the header every time.
Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
-
We have recently been tasked with modifying all of our .cpp, .h, and .c files to include a specialized header at the top of the files. Is anyone familiar with any application that apply this header programmatically and save us a lot of manual work?
After some digging, I did decide to write my own application in C# that will take a header file and apply it to the top of every source code file.
-
We have recently been tasked with modifying all of our .cpp, .h, and .c files to include a specialized header at the top of the files. Is anyone familiar with any application that apply this header programmatically and save us a lot of manual work?
You could do that in a few lines of Perl :)
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?