Quantcast
Channel: ArchiCAD-Talk - Developer Forum
Viewing all articles
Browse latest Browse all 564

Menu problem

$
0
0
Author:ReignBough
Posted: Thu Apr 28, 2016 7:59 am (GMT+1)


I've got the following basic code for loading the menu strings of my add-on:

Code:
GSErrCode err = NoError;
err = ACAPI_Register_Menu(ID_MENU_STR_1, ID_MENU_STA_1, MenuCode_UserDef, MenuFlag_SeparatorBefore);
PrintfError(__LINE__, err);
//else //if (err == NoError)
err = ACAPI_Register_Menu(ID_MENU_STR_2, ID_MENU_STA_2, MenuCode_UserDef, MenuFlag_InsertIntoSame);
PrintfError(__LINE__, err);

where:PrintError() prints error detail to debug view even on release mode).

I release build it. It runs okay on another PCs except 1. Although it loads the first string, the second string does not load on that PC. But when I reload the add-on, it runs okay. Also, the PrintError() prints a NoError.

What causes this problem and how to fix it?
_________________
~ReignBough~
[ArchiCAD 19 INT 4013 FULL]
[Windows 7 Pro Intel Core i5 CPU 750 @ 2.67 GHz 8.00 GB 64-bit OS]


Viewing all articles
Browse latest Browse all 564

Trending Articles