gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > GBFS with C++

#22677 - dagamer34 - Sat Jun 26, 2004 7:35 pm

Does GBFS work with C++? I can't get it to successfully work after several tries. There aren't any examples of GBFS with C++ also.
_________________
Little kids and Playstation 2's don't mix. :(

#22685 - johnny_north - Sat Jun 26, 2004 10:26 pm

Describe the problem you're having with it.

#22687 - tepples - Sat Jun 26, 2004 10:46 pm

Unlike C, C++ doesn't automatically reinterpret_cast void * to the appropriate pointer type. You have to reinterpret_cast the pointer that GBFS gives you.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#22690 - dagamer34 - Sun Jun 27, 2004 2:12 am

I fixed my problem but I'm not sure what it was, so I can't post it to help others out. Sorry. But at least my ultra-cool intro with absolutely no music works. If I find some reliable web-space, I think I'll put it up.
_________________
Little kids and Playstation 2's don't mix. :(