Login Page - Create Account

Support Board


Date/Time: Tue, 30 Jun 2026 22:33:51 +0000



Post From: Redistributing Custom Studies

[2026-05-16 14:24:18]
fcws - Posts: 2
For the test, the SCDLLName is literally: TEST

Here's the exact code that I am using (this is the test from the documentation). Once I figure out how to get it working, I will update our other studies:

#include "sierrachart.h"

SCDLLName("TEST")

//This function is an example of using the sc.IsUserAllowedForSCDLLName variable
SCSFExport scsf_IsUserAllowedForSCDLLNameExample(SCStudyInterfaceRef sc)
{

if (sc.SetDefaults)
{
// Set the configuration and defaults

sc.GraphName = "IsUserAllowedForSCDLLName";
sc.StudyDescription = "This function is an example of using the sc.IsUserAllowedForSCDLLName variable to protect a study.";
sc.AutoLoop = 1;


return;
}


// Do data processing

if(sc.IsUserAllowedForSCDLLName == false)
{

if(sc.Index == 0)
{
sc.AddMessageToLog("You are not allowed to use this study",1);
}

return;
}
}