Click here to Skip to main content
13,056,135 members (52,652 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi Friends,

I want to parse a header file and auto generate a .cpp file. Can any one please suggest me good link in doing so or provide me a sample python script which will automatically generate a .cpp file.

I planning to using VC++ pre-build event to call this python script.

Thank you very much in advance
Posted 4-Aug-10 12:12pm
GPUToaster 6-Aug-10 7:34am
You mean to say that just by scanning the .H files, Python script will generate CPP files????? Kindly elaborate your query.
kishoresajja 11-Aug-10 18:00pm
Yeah, I have one header file and I want to auto generate .cpp and .h file with the information contained in the header file using some mechanism. So I thought it would be good I can do this using python script which can read the header file and create a all new .cpp and .h files.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

What do you precisely mean?

It seems that you want to read an header file and automatically generate a cpp file that implements that functions and classes... the day that a similar script will born, all the software developers will have to search for a different work! ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170728.2 | Last Updated 6 Aug 2010
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100