User forums > Help

File template question

(1/1)

buzibiho:
Hi,
I know that C::B can make use of project templates. But is it possible to create a file template, i.e. for any user-given string foo, create:

1. foo.h, which already has the include guards
2. foo.c, which includes "foo.h"

in the subdirectory src?

BlueHazzard:
You probably could create a wizard script...

You want to generate two files?

huycan:
I usually use the New class template to create the two files... (albeit the files will be .h and .cpp, not .c as you want)

Navigation

[0] Message Index

Go to full version