Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 01:40:58 +0000



version 1019 "SCFloatArrayRef" is not a recognized type

View Count: 1921

[2013-09-04 03:17:58]
hairyMug - Posts: 31
after installing the latest version, SCFloatArrayRef is not recognised as a valid type in my Custom study...
[2013-09-04 04:26:02]
Sierra Chart Engineering - Posts: 104368
This does not make sense. We see no problem with this. Make sure you are including an unmodified SierraChart.h file.
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
[2013-09-04 22:38:02]
hairyMug - Posts: 31
I completely agree, it does not make sendse so I un-installed and reinstalled 1018 and now it all works fine. So I tried it again and got many errors. So I tried the "CLR" version and attempted recompile and got the same results. I am back on 1018...
One thing I failed to mention, I am using VS2010 Pro; maybe it is limited to that?
[2013-09-04 22:57:33]
Sierra Chart Engineering - Posts: 104368
Use prerelease version 1020.

We do not see a reason why Visual C++ 2010 would be a problem. We use Visual Studio as well.
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
[2013-09-05 01:42:27]
hairyMug - Posts: 31
I installed 1020... still cannot compile... I went back to 2016 and works fine... There are so many different compiler & linking settings, there must be some setting burried in there which is different in my setup.
>> I am not familiar with what all these do as I mainly do "managed" code; VB.net & c#...
[2013-09-05 17:08:40]
Sierra Chart Engineering - Posts: 104368
Do you see SCFloatArrayRef defined in the SierraChart.H file you are using?

Cannot think of any compiler and linker setting which would affect this.
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
[2013-09-09 01:12:30]
hairyMug - Posts: 31
I compared the previous "SierraChart.H" (v1016) with the current "SierraChart.H" (v1022).
It seems that the main cause of the issue revolves around the inclusion of the "windows.h" file...

#include <windows.h> //Main Windows SDK header file

After removing it, I did get some expected compiler errors for "windows" functions which were not declared...
I used the old "SierraChart.H" and my code compiled with no problems...

I am not a C++ wizzard so I can't track down what the exact cause is but I hope this would give a clue...

[2013-09-09 18:02:26]
Sierra Chart Engineering - Posts: 104368
We are really not sure about this. We cannot reproduce the problem. We are using Visual C++ 2010.
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
[2013-09-13 03:04:12]
hairyMug - Posts: 31
I am also on Vs2010, Windows 7 (64 bit), 16 gig memory, Intel I7 processor...
What OS are you on?
[2013-09-13 03:08:58]
Sierra Chart Engineering - Posts: 104368
Windows 7. We do not see the problem even when compiling with CLR.


Show us the headers you are including in the CPP file you are compiling.
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
[2013-09-13 10:51:10]
hairyMug - Posts: 31
Mystery Solved...
This was caused by a function I created called "near";
When I renamed the function to "nearIt", everthing compiled correctly.
Apparently "near" is now a Microsoft reserved word in the "windows.h" file??

In any case, thanks so much for your help!!

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

Login

Login Page - Create Account