# knowledge of c but not cpp

## Recommended Posts

lxyzl    100
will i be able to program games with knowledge of c only?

Hodgman    51234
yes

##### Share on other sites
Washu    7829
Sure, why not?

Game development is not restricted by programming language. Heck, it doesn't even require programming to build a game (an HTML adventure game for instance..., or even YOUTUBE)

##### Share on other sites
szecs    2990
I know only C (and not too much) and I made some games. (okay, if a programmer saw my code, (s)he would jump out of the window crying)

##### Share on other sites
lxyzl    100
can any1 tell me where can i find direct3x tutorials for c? all i can find is cpp. thanks

##### Share on other sites
DevFred    840
What exactly do you mean by direct3x?

##### Share on other sites
phresnel    953
I am not sure if any1 is still around on the forums. Try to p.m. him.

edit: my fail, I confused any1 with not4any1.

##### Share on other sites
lxyzl    100
erm i meant, d3d.

##### Share on other sites
szecs    2990
Quote:
 Original post by phresnelI am not sure if any1 is still around on the forums. Try to p.m. him.edit: my fail, I confused any1 with not4any1.
Hmmm. (S)he seems to be more like an openGL guy/gal.

BTW DirectX is has a C style API, am I wrong?

For the OP: I strongly suggest you to take a deeper look at the forums, especially the beginners section/FAQ, so at least you will be able to ask a question.

##### Share on other sites
phresnel    953
Quote:
Original post by szecs
Quote:
 Original post by phresnelI am not sure if any1 is still around on the forums. Try to p.m. him.edit: my fail, I confused any1 with not4any1.
Hmmm. (S)he seems to be more like an openGL guy/gal.

my fail, * facepalms *

lxyzl    100
ok, no prob.

##### Share on other sites
phresnel    953
Quote:
 Original post by lxyzlok, no prob.

Which prob?

Anyways, if I remember correctly, then any DirectX thingy can be used directly in C.

E.g.:
IFoo *f = ...;f->bar();

goes in C like

IFoo *f;IFoo_bar(f)

or something similar. The header files or the shipped reference (which at least back in the day was rather big and even good) should tell you the whole story.

##### Share on other sites
lxyzl    100
my "no prob" was refering to szecs telling me to read the beginners section/faq.

##### Share on other sites
szecs    2990
What phresnel was trying to tell:

It is a forum, not a chat, so please spell out every single letters in a word.

Pff, I must be really bored, if I tell things in others' names...(and in obviously shit English...)