Support Board
Date/Time: Wed, 11 Nov 2026 18:15:52 +0000
Post From: Setting study DLL module function objects to indicate DLL is not loaded
| [2026-09-25 17:05:01] |
| User153286 - Posts: 73 |
|
last update for today... another strange finding. With the above update, I had created TLUTest.cpp using the Analysis->New/Open Custom Studies File. And as I mentioned I copied all the wanted code fro the MOBClusterVolumes logic into it. It complied and worked using the 3 steps that I found last night. So, I change the name of the my existing MOBClusterVolumes.cpp to MOBClusterVolumes_v1.cpp and removed it's _64 DLL in the Data folder I then created a new MOBClusterVolumes.cpp file using using the Analysis->New/Open Custom Studies File. This builds a template which I then updated as follows: // The top of every source code file must include this line #include "sierrachart.h" // For reference, refer to this page: // Advanced Custom Study Interface and Language (ACSIL) // This line is required. Change the text within the quote // marks to what you want to name your group of custom studies. SCDLLName("MOBClusterVolumes") //This is the basic framework of a study function. Change the name 'TemplateFunction' to what you require. SCSFExport scsf_MOBClusterVolumes(SCStudyInterfaceRef sc) { // Section 1 - Set the configuration variables and defaults if (sc.SetDefaults) { sc.GraphName = "MOBClusterVolumes"; sc.AutoLoop = 1; //Automatic looping is enabled. sc.Subgraph[0].Name = "Name"; sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[0].PrimaryColor = RGB (0, 255, 0); sc.Input[0].Name = "Float Input"; sc.Input[0].SetFloat(0.0f); return; } // Section 2 - Do data processing here } This complied cleanly and came up with the 2 error messages in the message log so I then did the Step 2 Build->Allow DLL Load followed by the Step 3 Chart->Recalculate and magically the study appeared in the custom study listing Why would creating the file via Analysis->New/Open Custom Studies File have anything to do with this? The windows properties for all the .cpp files I have made this way or by a simple copy and paste are all the same, same everything in their respective file properties details. This is so strange.... So added there are now 4 steps to use step 0 is to first create the .cpp source file using Analysis->New/Open Custom Studies File |
