C++ code generators

Oct 14, 2008 at 9:38am
Are there any good, free, C++ code generators out there?

Being very new to C++, I have looked at the source code of some programs at planetsourcecode.com thinking: "WOW, somebody actually typed out all that!"

I am kind of hoping there is a better/easier way of coding. I have googled for C++ code generators, but I dont know enough about the language, yet, to know if what I found is any good.

Can you suggest a good, preferably free, C++ code generator. Thank you =]
Oct 14, 2008 at 11:08am
rolls eyes
Oct 14, 2008 at 2:36pm
Theres reuseable code available.

How exactly would this code generator work? I like the sound of it and would love to get one of those myself.
Does it take pseudo code and turn it into C++ code?
Does it take a program thats half finished and finish it?
It almost sounds like the perfect program, please share whatever you have!
Oct 14, 2008 at 3:14pm
I know about ResEdit which is a Resource generator but it could even generate C code.
You could find it at http://www.resedit.net/
It works as visual programming for Win32 programs but it just sets the window up, for other actions you have to modify the generated code on your own
Last edited on Oct 14, 2008 at 3:15pm
Oct 14, 2008 at 3:30pm
Umz, I have no idea. Thats what I am asking about it here.

The only I have messed around with that even is like programming was html. I started learning the same way, 1 line at a time. When I found out about programs like Dreamweaver, it was a huge relief. Learning that I would not have to type out, and keep in order, all the html code needed for a webpage.

I have looked at Visual basic, so maybe it would be like that. Idk though. I hope someone here knows what I am talking about and and point me in the direction of it.
Oct 14, 2008 at 8:54pm
Yea sure go download "WhenPigsFly v1.0" - easy to find from Google. Once you download it, you just open it up and type what you want and watch WPF (WhenPigsFly) do it's magic for you. For example, when asked what you're interested in coding, if you type "A program to blow up the internet" then WPF will generate the source code and a precompiled exe for your pleasure. Then simply run the program that WPF made for you and say buh-bye to the internet.

PS: Don't ACTUALLY make WPF blow up the internet, that's not even cool.
Last edited on Oct 14, 2008 at 8:54pm
Oct 14, 2008 at 10:25pm
@TheNoobie: If you don't know what your talking about, don't post.

I am kind of hoping there is a better/easier way of coding. I have googled for C++ code generators, but I dont know enough about the language, yet, to know if what I found is any good.


Typically there is no such thing as a code generator for domain independent code.

However, there are quite a few tools that will generate code for a user-interface toolkit (e.g Glade).

There are also quite a few code generation tools that are used for enterprise development. They are usually quite specific to their domain and are not much use for general purpose programming.

The new method of having code generation in the business world is to model your problem using a pseudo language (or a diagram) and have a tool intepret this and generate you an enterprise application backend.

As your a new programmer, I wouldn't recommend you trying to get into this until you've had a few years exposure to development methodologies. For those who are interested, one of the major technologies coming through from alot of the big vendors is BPEL engines. A good one to have a bash around with is the Oracle BPEL Designer (as part of JDeveloper). You build your application as a flow-chart and it'll generate the code and deploy it as a J2EE application.

I am currently using an integration engine called JitterBit. This tool functions very similarly and it's designed for solving problems of integrating systems together and allowing data to move freely between them without having to write code (translators, adapters etc).

Hope this helps :) Good luck with your programming.
Last edited on Oct 14, 2008 at 10:26pm
Oct 15, 2008 at 12:43am
Thank you Bazzy. That seems to be exactly what I was looking for. Now I just need to find the include files so I can find it.

Zaita, I kinda agree with you. I really enjoy programming. The work it a lot of fun, and the chance to create and solve my own puzzles is great.

For now at least, I am still learning and need the up close and personal exp with the language. Later when my codes become more complex, and I begin writing windows apps; I should hope that I will not have to try to keep every box and botton all neat and clean, while worring if my program will do what I want.

To the rest of you... "How rude!"

p.s.
The Noobie,
If you dont know this already, let me inform you. Pigs do fly. If you dont believe me call your favorite air line, and tell them that you have a pet pig you would like to take with you on your trip to Cali. Ask them what need to be done so that your sweet little Babe can ride join you when seeing the stars.
Topic archived. No new replies allowed.