Any code generator using T4 and Powershell for MFC?

I'm not aware about something already existing, but is not so difficult to create one. You can host T4 templating engine in your own project: Have a look at Processing Text Templates by using a Custom Host and also the Walkthrough: Creating a Custom Text Template Host, always from MSDN . The tricky part could be providing the DataSource for scaffolding, this is a little tricky if you expect to simple pass some objects to the templating engine: actually is different, you are extending a class by creating your custom host, and you can use that class to expose objects to the text transformation part.

This would be clear as soon you start to create your custom host. Well, of course the plumbing part would be managed code ( probably C# ), but done the plumbing you can have a console application taking a template as a parameter and generating almost everything you want. If you are interested in something more "raw" I did something in the past for c# classes autogeneration from C here the code of my custom host .

A really useful reference you should read about T4 templating in general is the Oleg Sych blog who wrote a lot and deep about T4 templating in general.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions