about converting c to basic

BlitzMax Forums/BlitzMax Programming/about converting c to basic

is there any one that nows were i can finde a page about c code to basic code convertion

Never tried it myself. and I think you'll find that its a case of trial and error. It will help you better if you understood a tad about C and BMAX, so you know what is comparable between the two lingos.

Have you ever dabbled with C in the past?

There are c to visual basic converters I've seen. Of course, VB has a different syntax than BM (I'll say!).

What Thumbz says is right, too. What is it that you want to convert?

Russell

I don't think it would be that difficult. May struggle with memory pointers and initialisation of pointers/arrays, casting might be a pain in a$$£, but I convert from c all the time. Or you can use compiled c/c++ functions to do grunt work and just pass your parameters in and out of the c programs.

Depends on your specifics?

what you might struggle with is converting over Arrays.

What kind of stuff do you want to convert?

Keep in mind that BlitzMax isn't a BASIC language like the other Blitz languages. It's at a middle-ground between BASIC and C.

You could probably write a converter and pass the code through it. Even if you did a sloppy one it would cut out a lot of the repeditive work depending on how large the file(s) is/are.