Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 05:17:36 +0000



new version broke GetUserDrawingByLineNumber()

View Count: 697

[2018-08-07 18:48:00]
bjohnson777 (Brett Johnson) - Posts: 284
I upgraded to 1785 yesterday and did my usual recompile of my main DLL.

GetUserDrawingByLineNumber() broke when doing a Remote Build. Looking at the error below, I tried swapping it with GetUserDrawnDrawingByLineNumber() as found in sierrachart.h and it compiled again.

I ran the 1785 installer on top of my installation again and nothing changed.

I did the site search and GetUserDrawnDrawingByLineNumber() isn't in the documentation, so I'm guessing this isn't meant to be directly used by developers.

Everything compiled fine last Monday with the previous version. I haven't made any source code changes recently.

Source code generating the error is attached to post 1:
Offering To The Community: Brett's Multi-Function Trailing Stop

Thanks


-- Starting remote build of Custom Studies Source files: Trading_BrettJohnsonsMultiFunctionTrailingStop.cpp. 64-bit -- 13:36: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 Trading_BrettJohnsonsMultiFunctionTrailingStop.cpp:24:0:
Trading_BrettJohnsonsMultiFunctionTrailingStop.cpp: In function 'void scsf_BrettJohnsonsMultiFunctionTrailingStop(SCStudyInterfaceRef)':
sierrachart.h:3891:36: error: invalid conversion from 'int (*)(int, int, s_UseTool&)' to 'int' [-fpermissive]
#define GetUserDrawingByLineNumber GetUserDrawnDrawingByLineNumber;
^
Trading_BrettJohnsonsMultiFunctionTrailingStop.cpp:1847:12: note: in expansion of macro 'GetUserDrawingByLineNumber'
RC = sc.GetUserDrawingByLineNumber(sc.ChartNumber, pExitTrendLineLineNumber, Tool); //DRAWING_RAY, 0
^
sierrachart.h:3891:36: error: invalid conversion from 'int (*)(int, int, s_UseTool&)' to 'int' [-fpermissive]
#define GetUserDrawingByLineNumber GetUserDrawnDrawingByLineNumber;
^
Trading_BrettJohnsonsMultiFunctionTrailingStop.cpp:1872:12: note: in expansion of macro 'GetUserDrawingByLineNumber'
RC = sc.GetUserDrawingByLineNumber(sc.ChartNumber, pPriceTargetLineNumber, Tool); //DRAWING_HORIZONTALLINE, 0
^

-- End of Build -- 13:36:08


[2018-08-07 22:04:35]
Sierra Chart Engineering - Posts: 104368
The documentation has now been updated. The name of the function has changed.
Sierra Chart Support - Engineering Level

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

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2018-08-07 22:04:52

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

Login

Login Page - Create Account