Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

newbie question

Anonymous
Not applicable
Hi all,

So, for debug my add-on, I use ACAPI_WriteReport() function for display a const char*. But I would like to display a int and cast doesn't works .

I search for an other function but no result...
Did you have an idea for display a int ?

PS : Pointbreaks does'nt works too...
2 REPLIES 2

Ralph Wessel
Mentor
atila-diffusion wrote:
So, for debug my add-on, I use ACAPI_WriteReport() function for display a const char*. But I would like to display a int and cast doesn't works
Are you not able to use the debugger, i.e. set breakpoints, step through the code, and examine variables directly? Which compiler/IDE are you using?
Ralph Wessel BArch

Akos Somorjai
Graphisoft
Graphisoft
atila-diffusion wrote:
Hi all,

So, for debug my add-on, I use ACAPI_WriteReport() function for display a const char*. But I would like to display a int and cast doesn't works .

I search for an other function but no result...
Did you have an idea for display a int ?

PS : Pointbreaks does'nt works too...
In C, you cannot cast an int to a const char*.

Do something like this:
char message[256];
int val = 27;
sprintf (message, "Integer value: %d", val);
ACAPI_WriteReport (message);
I'd recommend looking at a basic C/C++ tutorial before diving into the API.

Best, Akos

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!