quote:
Originally posted by accord
I'm a little confused. Are you asking how to replace your VA snippets? Is so, you can do it by replacing its file. You can read more about this:
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7024
Later you wrote about header file macros and how to replace those header files. What do you mean by header file macros? C++ defines or something else?
No, specifically, say I have a solution with 5 different projects.
For each of those, I have /!@ defined as something different in the VA Snippets - something like this for a .cpp file:
/**
* This is my standard header and copyright info
*/
#include "..\\Core\\precomp.h"
#include "$FILE_BASE$.h"
$end$
#endif //$FILE_BASE$__GUARD
... but in another project, it might look like this:
/**
* This is my specific library header and copyright info.
*/
#include "..\\Lib\\Inc\\precomp.h"
#include "..\\Include\\$FILE_BASE$.h"
$end$
#endif //$FILE_BASE$__GUARD
... so ideally, I want to be able to stick a projectname.snippets file in the folder alongside the vcproj file, and when I'm working with a file in that project, VAX should load the project-specific snippets and use them to override any snippets defined in the default one.