![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Problem converting text example in pspsdk from C to C++ within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I'm trying to convert the text example located in the pspsdk from C to C++ (/usr/local/pspdev/psp/sdk/samples/gu/text/). I was hoping to ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
I'm trying to convert the text example located in the pspsdk from C to C++ (/usr/local/pspdev/psp/sdk/samples/gu/text/). I was hoping to integrate it somewhat into one of my current C++ projects. The error is the following:
Code:
main.cpp: In function ‘void drawString(const char*, int, int, unsigned int, int)’: main.cpp:106: error: invalid conversion from ‘void*’ to ‘drawString(const char*, int, int, unsigned int, int)::VERT*’ |
|
|
|
|
|
|
#2 |
![]() ![]() Developer
|
try the following
Code:
VERT* v = static_cast<VERT*> (sceGuGetMemory(sizeof(VERT) * 2 * len) );
__________________
[Blog] [Portfolio] [Homebrew Illuminati - Serious Homebrew Development Forums] [I want to make Homebrew FAQ] [How I broke into the Games Industry] [Programming Book List] [Programming Article List] |
|
|
|
![]() |
| Tags |
| converting , problem , pspsdk , text |
| Thread Tools | |
|
|