Login Page - Create Account

Support Board


Date/Time: Wed, 17 Jan 2018 09:27:54 +0000



Advanced custom study

Support Request:
[2018-01-02 17:06:16]
User558377 - Posts: 12
I have some advanced custom studies that were developed some years ago. They worked like a charm but now they won't compile. My developer is busy at the moment but he looked at the error log and seems to think that you guys must have had some changes to the syntax. Can you point me to some documentation that might help us figure it out? Thank you and happy new year to all. Here is the error. I would be willing to pay for phone and or remote support if that is an option. Thank you



-- Starting remote build of Custom Studies Source files: ActiveMatrixDelux_v7m6.cpp. -- 18:41:49
Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

ActiveMatrixDelux_v7m6.cpp:7:10: error: expected constructor, destructor, or type conversion before '(' token
SCDLLInit("ActiveMatrixDelux v7m6")
^
ActiveMatrixDelux_v7m6.cpp: In function 'void scsf_ActiveMatrixDelux(SCStudyInterfaceRef)':
ActiveMatrixDelux_v7m6.cpp:82:29: error: 'DRAWSTYLE_DONOTDRAW' was not declared in this scope
sg.Subgraph[2].DrawStyle = DRAWSTYLE_DONOTDRAW; // Here we set our default 'DrawStyle' to point
^

-- End of Build -- 18:41:53
Date Time Of Last Edit: 2018-01-02 17:07:23
[2018-01-02 19:07:39]
Sierra Chart Engineering - Posts: 56211
Change this line from:
SCDLLInit("ActiveMatrixDelux v7m6")
To:
SCDLLName("ActiveMatrixDelux v7m6")

Change:
DRAWSTYLE_DONOTDRAW

To:
DRAWSTYLE_HIDDEN

Let us know if you need more help.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
Date Time Of Last Edit: 2018-01-02 19:07:49
[2018-01-02 19:34:07]
User558377 - Posts: 12
Thank you for the reply. I seem to have gotten further but still no success. Here is my current error.



-- Starting remote build of Custom Studies Source files: ActiveMatrixDelux_v7m6.cpp. -- 11:31:32
Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

ActiveMatrixDelux_v7m6.cpp:12:26: fatal error: sierrachart.h : No such file or directory
#include <sierrachart.h >
^
compilation terminated.

-- End of Build -- 11:31:35
[2018-01-02 19:47:37]
Sierra Chart Engineering - Posts: 56211
This has a space at the end:
#include <sierrachart.h >

It needs to be:
#include <sierrachart.h>
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2018-01-02 19:49:50]
User558377 - Posts: 12
Thank you and fyi i copied and pasted that from your website. It's not a criticism just fyi.


https://www.sierrachart.com/index.php?page=doc/AdvancedCustomStudyInterfaceAndLanguage.php#StepByStepInstructions
[2018-01-02 19:52:02]
User558377 - Posts: 12
I made the change and still getting an error...




-- Starting remote build of Custom Studies Source files: ActiveMatrixDelux_v7m6.cpp. -- 11:51:10
Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

ActiveMatrixDelux_v7m6.cpp:12:25: fatal error: sierrachart.h: No such file or directory
#include <sierrachart.h>
^
compilation terminated.

-- End of Build -- 11:51:13
[2018-01-02 19:54:59]
Sierra Chart Engineering - Posts: 56211
OK that was in step 6. This is now corrected:
https://www.sierrachart.com/index.php?page=doc/AdvancedCustomStudyInterfaceAndLanguage.php#StepByStepInstructions
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2018-01-02 19:56:18]
Sierra Chart Engineering - Posts: 56211
Change it to:
#include "sierrachart.h"
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2018-01-02 20:01:42]
User558377 - Posts: 12
Still getting an error... thanks for the help tho



-- Starting remote build of Custom Studies Source files: ActiveMatrixDelux_v7m6.cpp. -- 12:00:07
Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

ActiveMatrixDelux_v7m6.cpp:13:14: error: expected constructor, destructor, or type conversion before '(' token
CustomDLLName("ActiveMatrixDelux v7m6")
^

-- End of Build -- 12:00:11
[2018-01-02 20:05:02]
Sierra Chart Engineering - Posts: 56211
In regards to:
CustomDLLName("ActiveMatrixDelux v7m6")

Where did you get CustomDLLName from?

It should be as was previously said:
SCDLLName("ActiveMatrixDelux v7m6")
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2018-01-02 20:08:22]
Sierra Chart Engineering - Posts: 56211
OK we see CustomDLLName is used in the documentation. We will add support for that particular identifier name as well.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2018-01-02 20:09:19]
User558377 - Posts: 12
I see what you mean. I made the correction. Here is the latest error ...


-- Starting remote build of Custom Studies Source files: ActiveMatrixDelux_v7m6.cpp. -- 12:08:05
Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

In file included from sierrachart.h:15:0,
from ActiveMatrixDelux_v7m6.cpp:2:
ActiveMatrixDelux_v7m6.cpp: In function 'int scdll_DLLVersion()':
scstructures.h:100:28: error: redefinition of 'int scdll_DLLVersion()'
SCDLLEXPORT int SCDLLCALL scdll_DLLVersion() { return SC_DLL_VERSION; } \
^
ActiveMatrixDelux_v7m6.cpp:13:1: note: in expansion of macro 'SCDLLName'
SCDLLName("ActiveMatrixDelux v7m6")
^
scstructures.h:100:28: note: 'int scdll_DLLVersion()' previously defined here
SCDLLEXPORT int SCDLLCALL scdll_DLLVersion() { return SC_DLL_VERSION; } \
^
ActiveMatrixDelux_v7m6.cpp:7:1: note: in expansion of macro 'SCDLLName'
SCDLLName("ActiveMatrixDelux v7m6")
^
ActiveMatrixDelux_v7m6.cpp: In function 'const char* scdll_DLLName()':
scstructures.h:101:36: error: redefinition of 'const char* scdll_DLLName()'
SCDLLEXPORT const char* SCDLLCALL scdll_DLLName() { return DLLName; }
^
ActiveMatrixDelux_v7m6.cpp:13:1: note: in expansion of macro 'SCDLLName'
SCDLLName("ActiveMatrixDelux v7m6")
^
scstructures.h:101:36: note: 'const char* scdll_DLLName()' previously defined here
SCDLLEXPORT const char* SCDLLCALL scdll_DLLName() { return DLLName; }
^
ActiveMatrixDelux_v7m6.cpp:7:1: note: in expansion of macro 'SCDLLName'
SCDLLName("ActiveMatrixDelux v7m6")
^

-- End of Build -- 12:08:10
[2018-01-02 20:14:28]
Sierra Chart Engineering - Posts: 56211
Make sure there is only one SCDLLName in the source code file.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2018-01-02 20:30:44]
User558377 - Posts: 12
thank you thank you thank you

molto bene

bellisimo

happy new year

I may need help with some others

one at a time
[2018-01-02 20:42:37]
User558377 - Posts: 12
Here is anotherin ... when you get a splecond






-- Starting remote build of Custom Studies Source files: SolarisSystemTest8.cpp. -- 12:41:10
Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

SolarisSystemTest8.cpp: In function 'void scsf_SolarisSystemTest8(SCStudyInterfaceRef)':
SolarisSystemTest8.cpp:38:6: error: 'struct s_sc' has no member named 'ReferencesOtherChart'
sg.ReferencesOtherChart = 1;
^

-- End of Build -- 12:41:15
[2018-01-02 21:10:33]
User558377 - Posts: 12
I think i get whats going on. I'll come back if i get stuck.
[2018-01-15 15:06:52]
User558377 - Posts: 12
I spoke with my developer. Hes has no idea why it won't compile. This is code that used to work. Can you guys help? I'm happy to pay for phone support or whatever it takes. Thank you.

-- Starting remote build of Custom Studies Source files: MultiChart_v3m1.cpp. -- 07:06:09
Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

MultiChart_v3m1.cpp: In function 'void scsf_MultiChart(SCStudyInterfaceRef)':
MultiChart_v3m1.cpp:38:6: error: 'struct s_sc' has no member named 'ReferencesOtherChart'
sg.ReferencesOtherChart = 1;
^

-- End of Build -- 07:06:13
[2018-01-15 17:29:42]
Sierra Chart Engineering - Posts: 56211
This code must be really old. How is it that you are using this variable?:
sg.ReferencesOtherChart
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2018-01-16 04:13:18]
User558377 - Posts: 12
I just submited the log for analysis. Thank you
[2018-01-16 05:05:12]
Sierra Chart Engineering - Posts: 56211
We actually remember that ACSIL variable. It really is old and from many many years ago.

Just remove it. It is no longer needed.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.

To post a message in this thread, you need to login with your Sierra Chart account:

Login


Login Page - Create Account