Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.
2012-04-26
08:51 AM
- last edited on
2023-08-02
04:30 PM
by
Doreena Deng
2012-05-04 12:08 AM
atila-diffusion wrote: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?
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
2012-08-08 04:22 PM
atila-diffusion wrote:In C, you cannot cast an int to a const char*.
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...
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.