Support Board
Date/Time: Sat, 30 Nov 2024 00:38:08 +0000
[Programming Help] - No Build any files cpp
View Count: 578
[2023-01-02 20:30:11] |
User824525 - Posts: 5 |
hello i am new to sierrachart and i am experiencing some difficulty in compiling a simple code like this can you help me? #include "sierrachart.h"
SCDLLName("Pannello con lista di nomi") SCSFExport scsf_DrawPanel(SCStudyInterfaceRef sc) { // Crea un array di stringhe che contiene i nomi da visualizzare nella lista SCString nameList[5] = {"Alice", "Bob", "Charlie", "Dave", "Eve"}; // Disegna il pannello con una lista di nomi SCColor panelColor = sc.GetBarColor(0); // Usa il colore delle barre come colore del pannello sc.GraphRegionBegin(panelColor, panelColor, panelColor); sc.GraphRegionBox(20, 20, 300, 300); // Disegna il bordo del pannello sc.TextOut(30, 30, "Lista di nomi:"); // Disegna il titolo del pannello for (int i = 0; i < 5; i++) { // Disegna ogni nome nella lista sc.TextOut(30, 50 + 20 * i, nameList[i]); } sc.GraphRegionEnd(); } |
[2023-01-04 19:29:34] |
User183724 - Posts: 183 |
i attempted to compile your code... received the following errors... according to this list: ACSIL Interface Members - Variables and Arrays: sc.ACSVersion there isn't a sc.GraphRegionBox, sc.TextOut, or , sc.GraphRegionEnd() function and thats why youre getting the errors. testingfromforumremovethis.cpp:25:6: error: 'struct s_sc' has no member named 'GraphRegionBox'; did you mean 'GraphRegion'? 25 | sc.GraphRegionBox(20, 20, 300, 300); // Disegna il bordo del pannello | ^~~~~~~~~~~~~~ | GraphRegion In file included from /usr/share/mingw-w64/include/winnt.h:9, from /usr/share/mingw-w64/include/minwindef.h:163, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from scstructures.h:15, from sierrachart.h:22, from testingfromforumremovethis.cpp:1: testingfromforumremovethis.cpp:27:6: error: 'struct s_sc' has no member named 'TextOutA' 27 | sc.TextOut(30, 30, "Lista di nomi:"); // Disegna il titolo del pannello | ^~~~~~~ testingfromforumremovethis.cpp:35:8: error: 'struct s_sc' has no member named 'TextOutA' 35 | sc.TextOut(30, 50 + 20 * i, nameList); | ^~~~~~~ testingfromforumremovethis.cpp:39:6: error: 'struct s_sc' has no member named 'GraphRegionEnd'; did you mean 'GraphRegion'? 39 | sc.GraphRegionEnd(); | ^~~~~~~~~~~~~~ | GraphRegion -- End of Build -- 13:18:16 |
[2023-01-04 19:43:22] |
User824525 - Posts: 5 |
Could you help me solve?
|
[2023-01-04 21:11:52] |
User431178 - Posts: 545 |
The available variables/functions are lilsted: ACSIL Interface Members - Variables and Arrays https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html There is more information here: ACSIL Programming Concepts For drawing on the chart area, there are two options: 1) Use drawing tools from ACSIL: Using Drawing Tools From an Advanced Custom Study 2) Use windows GDI: ACSIL Programming Concepts: Custom Free Form Drawing into Chart Window Using GDI (Graphics Device Interface) Based on your sample code, seems option 2 could be suitable, there is even a simple example available. |
[2023-01-05 02:10:02] |
User183724 - Posts: 183 |
/* This isn't exactly what you want but you may be able to use it or build from it... my old Hello World program. one of the first programs I got to work. It's only job is to print Hello World on the screen. I added sc.AddMessageToLog(); to the bottom so it will print Hello World to your Message log since your code had a text output to file. hope it helps you. Ive refered to it often. I only Remote Build my files so if you are using a local compiler, I can't help you there. Good luck */ #include "sierrachart.h" // must always be top line // Name of the custom study. // should be second line of code SCDLLName("HelloWorldv1") /*==========================================================================*/ SCSFExport scsf_HelloWorldv1(SCStudyInterfaceRef sc) { SCSubgraphRef StatusText = sc.Subgraph[0]; SCInputRef Input_HorizontalPosition = sc.Input[0]; SCInputRef Input_VerticalPosition = sc.Input[1]; SCInputRef Input_TransparentLabelBackground = sc.Input[3]; if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "HelloWorldv1"; // all graphs to be displayed must have a name sc.AutoLoop = 1; sc.GraphRegion = 0; sc.ValueFormat = 0; StatusText.Name = "Status Text"; StatusText.LineWidth = 20; StatusText.DrawStyle = DRAWSTYLE_CUSTOM_TEXT; StatusText.PrimaryColor = RGB(255, 255, 255); StatusText.SecondaryColor = RGB(0, 0, 160); StatusText.SecondaryColorUsed = true; StatusText.DisplayNameValueInWindowsFlags = 1; Input_HorizontalPosition.Name = "Initial Horizontal Position From Left (1-150)"; Input_HorizontalPosition.SetInt(70); // change initial postion horizontally Input_HorizontalPosition.SetIntLimits(1, 150); Input_VerticalPosition.Name = "Initial Vertical Position From Bottom (1-100)"; Input_VerticalPosition.SetInt(100); // change initial postion vertically Input_VerticalPosition.SetIntLimits(1, 100); Input_TransparentLabelBackground.Name = "Transparent Label Background"; Input_TransparentLabelBackground.SetYesNo(false); return; } // Do data processing SCString TextToDisplay; TextToDisplay = "Hello World!"; // change as req int HorizontalPosition = Input_HorizontalPosition.GetInt(); int VerticalPosition = Input_VerticalPosition.GetInt(); int TransparentLabelBackground = Input_TransparentLabelBackground.GetYesNo(); sc.AddAndManageSingleTextDrawingForStudy(sc, false, HorizontalPosition, VerticalPosition, StatusText, TransparentLabelBackground, TextToDisplay, 0); sc.AddMessageToLog(TextToDisplay,1); } |
[2023-01-05 07:01:40] |
User824525 - Posts: 5 |
Thanks for the answers and the data inputs to solve the code, I will study everything better to make my panel work
|
[2023-01-05 16:08:01] |
User824525 - Posts: 5 |
User183724 your code from many compile-time errors
|
[2023-01-05 17:30:27] |
User183724 - Posts: 183 |
the code i posted builds with no errors on sierra charts remote complier. if you are getting complier errors on it, you have a complier issue on your end.
|
[2023-01-05 17:35:31] |
User183724 - Posts: 183 |
heres a complied dll. like i said it only prints Hello World
|
Private File |
[2023-01-05 19:17:01] |
User824525 - Posts: 5 |
i get all these errors when compiling remotely with sierrachart -- Starting remote build of Custom Studies Source files: PanelList.cpp. 64-bit -- 19:13:03
Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: PanelList.cpp:11:1: error: stray '\302' in program 11 | SCSubgraphRef StatusText = sc.Subgraph[0]; | ^ PanelList.cpp:11:2: error: stray '\240' in program 11 | SCSubgraphRef StatusText = sc.Subgraph[0]; | ^ PanelList.cpp:11:3: error: stray '\302' in program 11 | SCSubgraphRef StatusText = sc.Subgraph[0]; | ^ PanelList.cpp:11:4: error: stray '\240' in program 11 | SCSubgraphRef StatusText = sc.Subgraph[0]; | ^ PanelList.cpp:13:1: error: stray '\302' in program 13 | SCInputRef Input_HorizontalPosition = sc.Input[0]; | ^ PanelList.cpp:13:2: error: stray '\240' in program 13 | SCInputRef Input_HorizontalPosition = sc.Input[0]; | ^ PanelList.cpp:13:3: error: stray '\302' in program 13 | SCInputRef Input_HorizontalPosition = sc.Input[0]; | ^ PanelList.cpp:13:4: error: stray '\240' in program 13 | SCInputRef Input_HorizontalPosition = sc.Input[0]; | ^ PanelList.cpp:14:1: error: stray '\302' in program 14 | SCInputRef Input_VerticalPosition = sc.Input[1]; | ^ PanelList.cpp:14:2: error: stray '\240' in program 14 | SCInputRef Input_VerticalPosition = sc.Input[1]; | ^ PanelList.cpp:14:3: error: stray '\302' in program 14 | SCInputRef Input_VerticalPosition = sc.Input[1]; | ^ PanelList.cpp:14:4: error: stray '\240' in program 14 | SCInputRef Input_VerticalPosition = sc.Input[1]; | ^ PanelList.cpp:15:1: error: stray '\302' in program 15 | SCInputRef Input_TransparentLabelBackground = sc.Input[3]; | ^ PanelList.cpp:15:2: error: stray '\240' in program 15 | SCInputRef Input_TransparentLabelBackground = sc.Input[3]; | ^ PanelList.cpp:15:3: error: stray '\302' in program 15 | SCInputRef Input_TransparentLabelBackground = sc.Input[3]; | ^ PanelList.cpp:15:4: error: stray '\240' in program 15 | SCInputRef Input_TransparentLabelBackground = sc.Input[3]; | ^ PanelList.cpp:17:1: error: stray '\302' in program 17 | if (sc.SetDefaults) | ^ PanelList.cpp:17:2: error: stray '\240' in program 17 | if (sc.SetDefaults) | ^ PanelList.cpp:17:3: error: stray '\302' in program 17 | if (sc.SetDefaults) | ^ PanelList.cpp:17:4: error: stray '\240' in program 17 | if (sc.SetDefaults) | ^ PanelList.cpp:18:1: error: stray '\302' in program 18 | { | ^ PanelList.cpp:18:2: error: stray '\240' in program 18 | { | ^ PanelList.cpp:18:3: error: stray '\302' in program 18 | { | ^ PanelList.cpp:18:4: error: stray '\240' in program 18 | { | ^ PanelList.cpp:19:1: error: stray '\302' in program 19 | // Set the configuration and defaults | ^ PanelList.cpp:19:2: error: stray '\240' in program 19 | // Set the configuration and defaults | ^ PanelList.cpp:19:3: error: stray '\302' in program 19 | // Set the configuration and defaults | ^ PanelList.cpp:19:4: error: stray '\240' in program 19 | // Set the configuration and defaults | ^ PanelList.cpp:19:5: error: stray '\302' in program 19 | // Set the configuration and defaults | ^ PanelList.cpp:19:6: error: stray '\240' in program 19 | // Set the configuration and defaults | ^ PanelList.cpp:19:7: error: stray '\302' in program 19 | // Set the configuration and defaults | ^ PanelList.cpp:19:8: error: stray '\240' in program 19 | // Set the configuration and defaults | ^ PanelList.cpp:21:1: error: stray '\302' in program 21 | sc.GraphName = "PanelList"; // all graphs to be displayed must have a name | ^ PanelList.cpp:21:2: error: stray '\240' in program 21 | sc.GraphName = "PanelList"; // all graphs to be displayed must have a name | ^ PanelList.cpp:21:3: error: stray '\302' in program 21 | sc.GraphName = "PanelList"; // all graphs to be displayed must have a name | ^ PanelList.cpp:21:4: error: stray '\240' in program 21 | sc.GraphName = "PanelList"; // all graphs to be displayed must have a name | ^ PanelList.cpp:21:5: error: stray '\302' in program 21 | sc.GraphName = "PanelList"; // all graphs to be displayed must have a name | ^ PanelList.cpp:21:6: error: stray '\240' in program 21 | sc.GraphName = "PanelList"; // all graphs to be displayed must have a name | ^ PanelList.cpp:21:7: error: stray '\302' in program 21 | sc.GraphName = "PanelList"; // all graphs to be displayed must have a name | ^ PanelList.cpp:21:8: error: stray '\240' in program 21 | sc.GraphName = "PanelList"; // all graphs to be displayed must have a name | ^ PanelList.cpp:22:1: error: stray '\302' in program 22 | sc.AutoLoop = 1; | ^ PanelList.cpp:22:2: error: stray '\240' in program 22 | sc.AutoLoop = 1; | ^ PanelList.cpp:22:3: error: stray '\302' in program 22 | sc.AutoLoop = 1; | ^ PanelList.cpp:22:4: error: stray '\240' in program 22 | sc.AutoLoop = 1; | ^ PanelList.cpp:22:5: error: stray '\302' in program 22 | sc.AutoLoop = 1; | ^ PanelList.cpp:22:6: error: stray '\240' in program 22 | sc.AutoLoop = 1; | ^ PanelList.cpp:22:7: error: stray '\302' in program 22 | sc.AutoLoop = 1; | ^ PanelList.cpp:22:8: error: stray '\240' in program 22 | sc.AutoLoop = 1; | ^ PanelList.cpp:23:1: error: stray '\302' in program 23 | sc.GraphRegion = 0; | ^ PanelList.cpp:23:2: error: stray '\240' in program 23 | sc.GraphRegion = 0; | ^ PanelList.cpp:23:3: error: stray '\302' in program 23 | sc.GraphRegion = 0; | ^ PanelList.cpp:23:4: error: stray '\240' in program 23 | sc.GraphRegion = 0; | ^ PanelList.cpp:23:5: error: stray '\302' in program 23 | sc.GraphRegion = 0; | ^ PanelList.cpp:23:6: error: stray '\240' in program 23 | sc.GraphRegion = 0; | ^ PanelList.cpp:23:7: error: stray '\302' in program 23 | sc.GraphRegion = 0; | ^ PanelList.cpp:23:8: error: stray '\240' in program 23 | sc.GraphRegion = 0; | ^ PanelList.cpp:24:1: error: stray '\302' in program 24 | sc.ValueFormat = 0; | ^ PanelList.cpp:24:2: error: stray '\240' in program 24 | sc.ValueFormat = 0; | ^ PanelList.cpp:24:3: error: stray '\302' in program 24 | sc.ValueFormat = 0; | ^ PanelList.cpp:24:4: error: stray '\240' in program 24 | sc.ValueFormat = 0; | ^ PanelList.cpp:24:5: error: stray '\302' in program 24 | sc.ValueFormat = 0; | ^ PanelList.cpp:24:6: error: stray '\240' in program 24 | sc.ValueFormat = 0; | ^ PanelList.cpp:24:7: error: stray '\302' in program 24 | sc.ValueFormat = 0; | ^ PanelList.cpp:24:8: error: stray '\240' in program 24 | sc.ValueFormat = 0; | ^ PanelList.cpp:26:1: error: stray '\302' in program 26 | StatusText.Name = "Status Text"; | ^ PanelList.cpp:26:2: error: stray '\240' in program 26 | StatusText.Name = "Status Text"; | ^ PanelList.cpp:26:3: error: stray '\302' in program 26 | StatusText.Name = "Status Text"; | ^ PanelList.cpp:26:4: error: stray '\240' in program 26 | StatusText.Name = "Status Text"; | ^ PanelList.cpp:26:5: error: stray '\302' in program 26 | StatusText.Name = "Status Text"; | ^ PanelList.cpp:26:6: error: stray '\240' in program 26 | StatusText.Name = "Status Text"; | ^ PanelList.cpp:26:7: error: stray '\302' in program 26 | StatusText.Name = "Status Text"; | ^ PanelList.cpp:26:8: error: stray '\240' in program 26 | StatusText.Name = "Status Text"; | ^ PanelList.cpp:27:1: error: stray '\302' in program 27 | StatusText.LineWidth = 20; | ^ PanelList.cpp:27:2: error: stray '\240' in program 27 | StatusText.LineWidth = 20; | ^ PanelList.cpp:27:3: error: stray '\302' in program 27 | StatusText.LineWidth = 20; | ^ PanelList.cpp:27:4: error: stray '\240' in program 27 | StatusText.LineWidth = 20; | ^ PanelList.cpp:27:5: error: stray '\302' in program 27 | StatusText.LineWidth = 20; | ^ PanelList.cpp:27:6: error: stray '\240' in program 27 | StatusText.LineWidth = 20; | ^ PanelList.cpp:27:7: error: stray '\302' in program 27 | StatusText.LineWidth = 20; | ^ PanelList.cpp:27:8: error: stray '\240' in program 27 | StatusText.LineWidth = 20; | ^ PanelList.cpp:28:1: error: stray '\302' in program 28 | StatusText.DrawStyle = DRAWSTYLE_CUSTOM_TEXT; | ^ PanelList.cpp:28:2: error: stray '\240' in program 28 | StatusText.DrawStyle = DRAWSTYLE_CUSTOM_TEXT; | ^ PanelList.cpp:28:3: error: stray '\302' in program 28 | StatusText.DrawStyle = DRAWSTYLE_CUSTOM_TEXT; | ^ PanelList.cpp:28:4: error: stray '\240' in program 28 | StatusText.DrawStyle = DRAWSTYLE_CUSTOM_TEXT; | ^ PanelList.cpp:28:5: error: stray '\302' in program 28 | StatusText.DrawStyle = DRAWSTYLE_CUSTOM_TEXT; | ^ PanelList.cpp:28:6: error: stray '\240' in program 28 | StatusText.DrawStyle = DRAWSTYLE_CUSTOM_TEXT; | ^ PanelList.cpp:28:7: error: stray '\302' in program 28 | StatusText.DrawStyle = DRAWSTYLE_CUSTOM_TEXT; | ^ PanelList.cpp:28:8: error: stray '\240' in program 28 | StatusText.DrawStyle = DRAWSTYLE_CUSTOM_TEXT; | ^ PanelList.cpp:29:1: error: stray '\302' in program 29 | StatusText.PrimaryColor = RGB(255, 255, 255); | ^ PanelList.cpp:29:2: error: stray '\240' in program 29 | StatusText.PrimaryColor = RGB(255, 255, 255); | ^ PanelList.cpp:29:3: error: stray '\302' in program 29 | StatusText.PrimaryColor = RGB(255, 255, 255); | ^ PanelList.cpp:29:4: error: stray '\240' in program 29 | StatusText.PrimaryColor = RGB(255, 255, 255); | ^ PanelList.cpp:29:5: error: stray '\302' in program 29 | StatusText.PrimaryColor = RGB(255, 255, 255); | ^ PanelList.cpp:29:6: error: stray '\240' in program 29 | StatusText.PrimaryColor = RGB(255, 255, 255); | ^ PanelList.cpp:29:7: error: stray '\302' in program 29 | StatusText.PrimaryColor = RGB(255, 255, 255); | ^ PanelList.cpp:29:8: error: stray '\240' in program 29 | StatusText.PrimaryColor = RGB(255, 255, 255); | ^ PanelList.cpp:30:1: error: stray '\302' in program 30 | StatusText.SecondaryColor = RGB(0, 0, 160); | ^ PanelList.cpp:30:2: error: stray '\240' in program 30 | StatusText.SecondaryColor = RGB(0, 0, 160); | ^ PanelList.cpp:30:3: error: stray '\302' in program 30 | StatusText.SecondaryColor = RGB(0, 0, 160); | ^ PanelList.cpp:30:4: error: stray '\240' in program 30 | StatusText.SecondaryColor = RGB(0, 0, 160); | ^ PanelList.cpp:30:5: error: stray '\302' in program 30 | StatusText.SecondaryColor = RGB(0, 0, 160); | ^ PanelList.cpp:30:6: error: stray '\240' in program 30 | StatusText.SecondaryColor = RGB(0, 0, 160); | ^ PanelList.cpp:30:7: error: stray '\302' in program 30 | StatusText.SecondaryColor = RGB(0, 0, 160); | ^ PanelList.cpp:30:8: error: stray '\240' in program 30 | StatusText.SecondaryColor = RGB(0, 0, 160); | ^ PanelList.cpp:31:1: error: stray '\302' in program 31 | StatusText.SecondaryColorUsed = true; | ^ PanelList.cpp:31:2: error: stray '\240' in program 31 | StatusText.SecondaryColorUsed = true; | ^ PanelList.cpp:31:3: error: stray '\302' in program 31 | StatusText.SecondaryColorUsed = true; | ^ PanelList.cpp:31:4: error: stray '\240' in program 31 | StatusText.SecondaryColorUsed = true; | ^ PanelList.cpp:31:5: error: stray '\302' in program 31 | StatusText.SecondaryColorUsed = true; | ^ PanelList.cpp:31:6: error: stray '\240' in program 31 | StatusText.SecondaryColorUsed = true; | ^ PanelList.cpp:31:7: error: stray '\302' in program 31 | StatusText.SecondaryColorUsed = true; | ^ PanelList.cpp:31:8: error: stray '\240' in program 31 | StatusText.SecondaryColorUsed = true; | ^ PanelList.cpp:32:1: error: stray '\302' in program 32 | StatusText.DisplayNameValueInWindowsFlags = 1; | ^ PanelList.cpp:32:2: error: stray '\240' in program 32 | StatusText.DisplayNameValueInWindowsFlags = 1; | ^ PanelList.cpp:32:3: error: stray '\302' in program 32 | StatusText.DisplayNameValueInWindowsFlags = 1; | ^ PanelList.cpp:32:4: error: stray '\240' in program 32 | StatusText.DisplayNameValueInWindowsFlags = 1; | ^ PanelList.cpp:32:5: error: stray '\302' in program 32 | StatusText.DisplayNameValueInWindowsFlags = 1; | ^ PanelList.cpp:32:6: error: stray '\240' in program 32 | StatusText.DisplayNameValueInWindowsFlags = 1; | ^ PanelList.cpp:32:7: error: stray '\302' in program 32 | StatusText.DisplayNameValueInWindowsFlags = 1; | ^ PanelList.cpp:32:8: error: stray '\240' in program 32 | StatusText.DisplayNameValueInWindowsFlags = 1; | ^ PanelList.cpp:34:1: error: stray '\302' in program 34 | Input_HorizontalPosition.Name = "Initial Horizontal Position From Left (1-150)"; | ^ PanelList.cpp:34:2: error: stray '\240' in program 34 | Input_HorizontalPosition.Name = "Initial Horizontal Position From Left (1-150)"; | ^ PanelList.cpp:34:3: error: stray '\302' in program 34 | Input_HorizontalPosition.Name = "Initial Horizontal Position From Left (1-150)"; | ^ PanelList.cpp:34:4: error: stray '\240' in program 34 | Input_HorizontalPosition.Name = "Initial Horizontal Position From Left (1-150)"; | ^ PanelList.cpp:34:5: error: stray '\302' in program 34 | Input_HorizontalPosition.Name = "Initial Horizontal Position From Left (1-150)"; | ^ PanelList.cpp:34:6: error: stray '\240' in program 34 | Input_HorizontalPosition.Name = "Initial Horizontal Position From Left (1-150)"; | ^ PanelList.cpp:34:7: error: stray '\302' in program 34 | Input_HorizontalPosition.Name = "Initial Horizontal Position From Left (1-150)"; | ^ PanelList.cpp:34:8: error: stray '\240' in program 34 | Input_HorizontalPosition.Name = "Initial Horizontal Position From Left (1-150)"; | ^ PanelList.cpp:35:1: error: stray '\302' in program 35 | Input_HorizontalPosition.SetInt(70); // change initial postion horizontally | ^ PanelList.cpp:35:2: error: stray '\240' in program 35 | Input_HorizontalPosition.SetInt(70); // change initial postion horizontally | ^ PanelList.cpp:35:3: error: stray '\302' in program 35 | Input_HorizontalPosition.SetInt(70); // change initial postion horizontally | ^ PanelList.cpp:35:4: error: stray '\240' in program 35 | Input_HorizontalPosition.SetInt(70); // change initial postion horizontally | ^ PanelList.cpp:35:5: error: stray '\302' in program 35 | Input_HorizontalPosition.SetInt(70); // change initial postion horizontally | ^ PanelList.cpp:35:6: error: stray '\240' in program 35 | Input_HorizontalPosition.SetInt(70); // change initial postion horizontally | ^ PanelList.cpp:35:7: error: stray '\302' in program 35 | Input_HorizontalPosition.SetInt(70); // change initial postion horizontally | ^ PanelList.cpp:35:8: error: stray '\240' in program 35 | Input_HorizontalPosition.SetInt(70); // change initial postion horizontally | ^ PanelList.cpp:36:1: error: stray '\302' in program 36 | Input_HorizontalPosition.SetIntLimits(1, 150); | ^ PanelList.cpp:36:2: error: stray '\240' in program 36 | Input_HorizontalPosition.SetIntLimits(1, 150); | ^ PanelList.cpp:36:3: error: stray '\302' in program 36 | Input_HorizontalPosition.SetIntLimits(1, 150); | ^ PanelList.cpp:36:4: error: stray '\240' in program 36 | Input_HorizontalPosition.SetIntLimits(1, 150); | ^ PanelList.cpp:36:5: error: stray '\302' in program 36 | Input_HorizontalPosition.SetIntLimits(1, 150); | ^ PanelList.cpp:36:6: error: stray '\240' in program 36 | Input_HorizontalPosition.SetIntLimits(1, 150); | ^ PanelList.cpp:36:7: error: stray '\302' in program 36 | Input_HorizontalPosition.SetIntLimits(1, 150); | ^ PanelList.cpp:36:8: error: stray '\240' in program 36 | Input_HorizontalPosition.SetIntLimits(1, 150); | ^ PanelList.cpp:38:1: error: stray '\302' in program 38 | Input_VerticalPosition.Name = "Initial Vertical Position From Bottom (1-100)"; | ^ PanelList.cpp:38:2: error: stray '\240' in program 38 | Input_VerticalPosition.Name = "Initial Vertical Position From Bottom (1-100)"; | ^ PanelList.cpp:38:3: error: stray '\302' in program 38 | Input_VerticalPosition.Name = "Initial Vertical Position From Bottom (1-100)"; | ^ PanelList.cpp:38:4: error: stray '\240' in program 38 | Input_VerticalPosition.Name = "Initial Vertical Position From Bottom (1-100)"; | ^ PanelList.cpp:38:5: error: stray '\302' in program 38 | Input_VerticalPosition.Name = "Initial Vertical Position From Bottom (1-100)"; | ^ PanelList.cpp:38:6: error: stray '\240' in program 38 | Input_VerticalPosition.Name = "Initial Vertical Position From Bottom (1-100)"; | ^ PanelList.cpp:38:7: error: stray '\302' in program 38 | Input_VerticalPosition.Name = "Initial Vertical Position From Bottom (1-100)"; | ^ PanelList.cpp:38:8: error: stray '\240' in program 38 | Input_VerticalPosition.Name = "Initial Vertical Position From Bottom (1-100)"; | ^ PanelList.cpp:39:1: error: stray '\302' in program 39 | Input_VerticalPosition.SetInt(100); // change initial postion vertically | ^ PanelList.cpp:39:2: error: stray '\240' in program 39 | Input_VerticalPosition.SetInt(100); // change initial postion vertically | ^ PanelList.cpp:39:3: error: stray '\302' in program 39 | Input_VerticalPosition.SetInt(100); // change initial postion vertically | ^ PanelList.cpp:39:4: error: stray '\240' in program 39 | Input_VerticalPosition.SetInt(100); // change initial postion vertically | ^ PanelList.cpp:39:5: error: stray '\302' in program 39 | Input_VerticalPosition.SetInt(100); // change initial postion vertically | ^ PanelList.cpp:39:6: error: stray '\240' in program 39 | Input_VerticalPosition.SetInt(100); // change initial postion vertically | ^ PanelList.cpp:39:7: error: stray '\302' in program 39 | Input_VerticalPosition.SetInt(100); // change initial postion vertically | ^ PanelList.cpp:39:8: error: stray '\240' in program 39 | Input_VerticalPosition.SetInt(100); // change initial postion vertically | ^ PanelList.cpp:40:1: error: stray '\302' in program 40 | Input_VerticalPosition.SetIntLimits(1, 100); | ^ PanelList.cpp:40:2: error: stray '\240' in program 40 | Input_VerticalPosition.SetIntLimits(1, 100); | ^ PanelList.cpp:40:3: error: stray '\302' in program 40 | Input_VerticalPosition.SetIntLimits(1, 100); | ^ PanelList.cpp:40:4: error: stray '\240' in program 40 | Input_VerticalPosition.SetIntLimits(1, 100); | ^ PanelList.cpp:40:5: error: stray '\302' in program 40 | Input_VerticalPosition.SetIntLimits(1, 100); | ^ PanelList.cpp:40:6: error: stray '\240' in program 40 | Input_VerticalPosition.SetIntLimits(1, 100); | ^ PanelList.cpp:40:7: error: stray '\302' in program 40 | Input_VerticalPosition.SetIntLimits(1, 100); | ^ PanelList.cpp:40:8: error: stray '\240' in program 40 | Input_VerticalPosition.SetIntLimits(1, 100); | ^ PanelList.cpp:41:1: error: stray '\302' in program 41 | | ^ PanelList.cpp:41:2: error: stray '\240' in program 41 | | ^ PanelList.cpp:41:3: error: stray '\302' in program 41 | | ^ PanelList.cpp:41:4: error: stray '\240' in program 41 | | ^ PanelList.cpp:42:1: error: stray '\302' in program 42 | Input_TransparentLabelBackground.Name = "Transparent Label Background"; | ^ PanelList.cpp:42:2: error: stray '\240' in program 42 | Input_TransparentLabelBackground.Name = "Transparent Label Background"; | ^ PanelList.cpp:42:3: error: stray '\302' in program 42 | Input_TransparentLabelBackground.Name = "Transparent Label Background"; | ^ PanelList.cpp:42:4: error: stray '\240' in program 42 | Input_TransparentLabelBackground.Name = "Transparent Label Background"; | ^ PanelList.cpp:42:5: error: stray '\302' in program 42 | Input_TransparentLabelBackground.Name = "Transparent Label Background"; | ^ PanelList.cpp:42:6: error: stray '\240' in program 42 | Input_TransparentLabelBackground.Name = "Transparent Label Background"; | ^ PanelList.cpp:42:7: error: stray '\302' in program 42 | Input_TransparentLabelBackground.Name = "Transparent Label Background"; | ^ PanelList.cpp:42:8: error: stray '\240' in program 42 | Input_TransparentLabelBackground.Name = "Transparent Label Background"; | ^ PanelList.cpp:43:1: error: stray '\302' in program 43 | Input_TransparentLabelBackground.SetYesNo(false); | ^ PanelList.cpp:43:2: error: stray '\240' in program 43 | Input_TransparentLabelBackground.SetYesNo(false); | ^ PanelList.cpp:43:3: error: stray '\302' in program 43 | Input_TransparentLabelBackground.SetYesNo(false); | ^ PanelList.cpp:43:4: error: stray '\240' in program 43 | Input_TransparentLabelBackground.SetYesNo(false); | ^ PanelList.cpp:43:5: error: stray '\302' in program 43 | Input_TransparentLabelBackground.SetYesNo(false); | ^ PanelList.cpp:43:6: error: stray '\240' in program 43 | Input_TransparentLabelBackground.SetYesNo(false); | ^ PanelList.cpp:43:7: error: stray '\302' in program 43 | Input_TransparentLabelBackground.SetYesNo(false); | ^ PanelList.cpp:43:8: error: stray '\240' in program 43 | Input_TransparentLabelBackground.SetYesNo(false); | ^ PanelList.cpp:45:1: error: stray '\302' in program 45 | | ^ PanelList.cpp:45:2: error: stray '\240' in program 45 | | ^ PanelList.cpp:45:3: error: stray '\302' in program 45 | | ^ PanelList.cpp:45:4: error: stray '\240' in program 45 | | ^ PanelList.cpp:45:5: error: stray '\302' in program 45 | | ^ PanelList.cpp:45:6: error: stray '\240' in program 45 | | ^ PanelList.cpp:45:7: error: stray '\302' in program 45 | | ^ PanelList.cpp:45:8: error: stray '\240' in program 45 | | ^ PanelList.cpp:46:1: error: stray '\302' in program 46 | return; | ^ PanelList.cpp:46:2: error: stray '\240' in program 46 | return; | ^ PanelList.cpp:46:3: error: stray '\302' in program 46 | return; | ^ PanelList.cpp:46:4: error: stray '\240' in program 46 | return; | ^ PanelList.cpp:46:5: error: stray '\302' in program 46 | return; | ^ PanelList.cpp:46:6: error: stray '\240' in program 46 | return; | ^ PanelList.cpp:46:7: error: stray '\302' in program 46 | return; | ^ PanelList.cpp:46:8: error: stray '\240' in program 46 | return; | ^ PanelList.cpp:47:1: error: stray '\302' in program 47 | } | ^ PanelList.cpp:47:2: error: stray '\240' in program 47 | } | ^ PanelList.cpp:47:3: error: stray '\302' in program 47 | } | ^ PanelList.cpp:47:4: error: stray '\240' in program 47 | } | ^ PanelList.cpp:50:1: error: stray '\302' in program 50 | // Do data processing | ^ PanelList.cpp:50:2: error: stray '\240' in program 50 | // Do data processing | ^ PanelList.cpp:50:3: error: stray '\302' in program 50 | // Do data processing | ^ PanelList.cpp:50:4: error: stray '\240' in program 50 | // Do data processing | ^ PanelList.cpp:51:1: error: stray '\302' in program 51 | | ^ PanelList.cpp:51:2: error: stray '\240' in program 51 | | ^ PanelList.cpp:51:3: error: stray '\302' in program 51 | | ^ PanelList.cpp:51:4: error: stray '\240' in program 51 | | ^ PanelList.cpp:52:1: error: stray '\302' in program 52 | SCString TextToDisplay; | ^ PanelList.cpp:52:2: error: stray '\240' in program 52 | SCString TextToDisplay; | ^ PanelList.cpp:52:3: error: stray '\302' in program 52 | SCString TextToDisplay; | ^ PanelList.cpp:52:4: error: stray '\240' in program 52 | SCString TextToDisplay; | ^ PanelList.cpp:53:1: error: stray '\302' in program 53 | | ^ PanelList.cpp:53:2: error: stray '\240' in program 53 | | ^ PanelList.cpp:53:3: error: stray '\302' in program 53 | | ^ PanelList.cpp:53:4: error: stray '\240' in program 53 | | ^ PanelList.cpp:55:1: error: stray '\302' in program 55 | | ^ PanelList.cpp:55:2: error: stray '\240' in program 55 | | ^ PanelList.cpp:55:3: error: stray '\302' in program 55 | | ^ PanelList.cpp:55:4: error: stray '\240' in program 55 | | ^ PanelList.cpp:56:1: error: stray '\302' in program 56 | int HorizontalPosition = Input_HorizontalPosition.GetInt(); | ^ PanelList.cpp:56:2: error: stray '\240' in program 56 | int HorizontalPosition = Input_HorizontalPosition.GetInt(); | ^ PanelList.cpp:56:3: error: stray '\302' in program 56 | int HorizontalPosition = Input_HorizontalPosition.GetInt(); | ^ PanelList.cpp:56:4: error: stray '\240' in program 56 | int HorizontalPosition = Input_HorizontalPosition.GetInt(); | ^ PanelList.cpp:57:1: error: stray '\302' in program 57 | int VerticalPosition = Input_VerticalPosition.GetInt(); | ^ PanelList.cpp:57:2: error: stray '\240' in program 57 | int VerticalPosition = Input_VerticalPosition.GetInt(); | ^ PanelList.cpp:57:3: error: stray '\302' in program 57 | int VerticalPosition = Input_VerticalPosition.GetInt(); | ^ PanelList.cpp:57:4: error: stray '\240' in program 57 | int VerticalPosition = Input_VerticalPosition.GetInt(); | ^ PanelList.cpp:60:1: error: stray '\302' in program 60 | int TransparentLabelBackground = Input_TransparentLabelBackground.GetYesNo(); | ^ PanelList.cpp:60:2: error: stray '\240' in program 60 | int TransparentLabelBackground = Input_TransparentLabelBackground.GetYesNo(); | ^ PanelList.cpp:60:3: error: stray '\302' in program 60 | int TransparentLabelBackground = Input_TransparentLabelBackground.GetYesNo(); | ^ PanelList.cpp:60:4: error: stray '\240' in program 60 | int TransparentLabelBackground = Input_TransparentLabelBackground.GetYesNo(); | ^ PanelList.cpp:61:1: error: stray '\302' in program 61 | | ^ PanelList.cpp:61:2: error: stray '\240' in program 61 | | ^ PanelList.cpp:61:3: error: stray '\302' in program 61 | | ^ PanelList.cpp:61:4: error: stray '\240' in program 61 | | ^ PanelList.cpp:62:149: error: stray '\302' in program 62 | sc.AddAndManageSingleTextDrawingForStudy(sc, false, HorizontalPosition, VerticalPosition, StatusText, TransparentLabelBackground, TextToDisplay, 0); | ^ PanelList.cpp:62:150: error: stray '\240' in program 62 | sc.AddAndManageSingleTextDrawingForStudy(sc, false, HorizontalPosition, VerticalPosition, StatusText, TransparentLabelBackground, TextToDisplay, 0); | ^ PanelList.cpp:62:151: error: stray '\302' in program 62 | sc.AddAndManageSingleTextDrawingForStudy(sc, false, HorizontalPosition, VerticalPosition, StatusText, TransparentLabelBackground, TextToDisplay, 0); | ^ PanelList.cpp:62:152: error: stray '\240' in program 62 | sc.AddAndManageSingleTextDrawingForStudy(sc, false, HorizontalPosition, VerticalPosition, StatusText, TransparentLabelBackground, TextToDisplay, 0); | ^ PanelList.cpp:63:1: error: stray '\302' in program 63 | | ^ PanelList.cpp:63:2: error: stray '\240' in program 63 | | ^ PanelList.cpp:63:3: error: stray '\302' in program 63 | | ^ PanelList.cpp:63:4: error: stray '\240' in program 63 | | ^ PanelList.cpp:64:1: error: stray '\302' in program 64 | sc.AddMessageToLog(TextToDisplay,1); | ^ PanelList.cpp:64:2: error: stray '\240' in program 64 | sc.AddMessageToLog(TextToDisplay,1); | ^ PanelList.cpp:64:3: error: stray '\302' in program 64 | sc.AddMessageToLog(TextToDisplay,1); | ^ PanelList.cpp:64:4: error: stray '\240' in program 64 | sc.AddMessageToLog(TextToDisplay,1); | ^ PanelList.cpp:65:1: error: stray '\302' in program 65 | | ^ PanelList.cpp:65:2: error: stray '\240' in program 65 | | ^ PanelList.cpp:65:3: error: stray '\302' in program 65 | | ^ PanelList.cpp:65:4: error: stray '\240' in program 65 | | ^ -- End of Build -- 19:13:08 |
[2023-01-05 19:48:43] |
User183724 - Posts: 183 |
those errors are coming from whatever program you are copying my source code into. it looks like stray line numbers. I assure you my code works and complies as it should using SC version of Notepad++ and their Remote Complier. The source I posted was written in Notepad++ and the dll I posted is from their complier. I dont know what is wrong but I can assure you its on your end. Hope you get it figured out.
|
[2023-01-05 20:03:20] |
User183724 - Posts: 183 |
heres a picture of my study running https://www.sierrachart.com/image.php?Image=1672948939579.png |
To post a message in this thread, you need to log in with your Sierra Chart account: