Support Board
Date/Time: Wed, 04 Feb 2026 12:25:23 +0000
Post From: Getting non-stop errors when trying to put in the protection code for a custom DLL study
| [2026-02-04 09:03:25] |
| User431178 - Posts: 841 |
|
You should look at the example provided and compare to your own. Advanced Custom Study Interface and Language (ACSIL): Redistributing and Allowing Use Only by a Defined List of Users Test_Auth_Check.cpp: In function 'void scsf_TestAuth(SCStudyInterfaceRef)': Test_Auth_Check.cpp:15:56: error: expression cannot be used as a function 15 | if (!sc.IsUserAllowedForSCDLLName("Test_Auth_Check")) | ^Failed to generate the dll file.-- End of Build -- 22:05:38 The error message is also telling you what the problem is and where to look. Line 15, character 56 - expression cannot be used as function. >>> sc.IsUserAllowedForSCDLLName is not a function, it's a variable. // This is the line that keeps failing in your other files if (!sc.IsUserAllowedForSCDLLName("Test_Auth_Check")) { sc.AddMessageToLog("Unauthorized - Contact provider", 1); return; } sc.AddMessageToLog("Authorized - Study loaded OK", 1); Don't use it in your study without guarding the message log part, otherwise it will be constantly spewing out messages (again check the example code). |
