Support Board
Date/Time: Mon, 25 Nov 2024 02:29:35 +0000
Serious issue with custom dll
View Count: 299
[2024-04-03 23:14:08] |
WarEagle - Posts: 73 |
Hi, I use a dll with code that I wrote long ago in Visual Studio when Sierra supported that method. It relies on an external dll and so I have never been able to build it internally using the newer method. As a result I have to stay with Visual Studio for any rebuilds. Something happened today that is concerning. I have not had to update the code in awhile and so I have had several Sierra version updates along the way without rebuilding my VS solution or the dll that I use. Today I needed to update some code and after doing so I tried to rebuild the solution as I always have. The build failed with a very long list of errors from the sierrachart.h file that I #include in my code. The rebuild process seemingly deleted my old dll file but because of the errors will not create a new one, leaving me without all of my work. The dll file is literally not in the Data folder anymore. I am scared to even reboot the computer, hoping there is some solution even if it is just recovering the old dll file. Has the sierrachart.h file changed in recent updates that would make it flag many errors in Visual Studio? I will attach a screenshot of a sample of the errors. Is there a version of SierraChart that I could roll back to that would allow me to recompile my code as before? Thank you for any help. |
sierrachart_h errors.png / V - Attached On 2024-04-03 23:09:23 UTC - Size: 205.39 KB - 70 views |
[2024-04-04 00:04:51] |
Sierra_Chart Engineering - Posts: 17166 |
Replace this type definition t_OrderQuantity32_64 with double. And it also looks like there might be a missing brace or ; somewhere. Should not be hard to determine what the problem is. We can help. Are you using a standalone installation of Visual C++? This is what we would recommend. 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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2024-04-04 00:57:35
|
[2024-04-04 01:09:32] |
WarEagle - Posts: 73 |
Thank you for your assistance, I appreciate it very much. I wrote the dll originally in Visual Studio 2019. When Windows updated to Windows 11 a few years ago it forced me to update to VS 2022 and under product information it says "Visual C++ 2022". I have attached a screenshot of the About page. My concern is that there are hundreds of errors (the build aborted when it hit over 100 and the previous screenshot is just a sample of the list) that are all located in the sierrachart.h file. I have never touched this file and it is the only one generating build errors. I doubt any of your code would be missing any braces or semicolons or include undeclared variables so it seems like there is a bigger problem going on here that I simply don't understand. I have been able to rebuild the solution many times before with no problems. |
visual studio version.png / V - Attached On 2024-04-04 01:08:41 UTC - Size: 139.55 KB - 56 views |
[2024-04-04 01:35:55] |
Sierra_Chart Engineering - Posts: 17166 |
The version of Visual C++ you are using should not matter. We do not think that is of any concern at least with Sierra Chart custom studies and the headers we provide. When you get an excessive amount of errors like we see, usually it is just one formatting character that is a problem triggering a large amount of errors. 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, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-04-04 14:26:03] |
WarEagle - Posts: 73 |
Thank you again. I found the problem and will write it here so that I remember it in the future if it happens again, ha! With one of the recent version updates the sierrachart.h file was updated as well. Visual Studio has a copy of sierrachart.h in the project folder but it needs to be updated to the new file in order to build the dll without error. I was thinking I had it linked to the ACS_Source folder which would have any new version but it is not. A simple copy/paste of the new sierrachart.h into the project folder solved it. As always, I appreciate Sierra and the great product you provide that lets me do all my custom work. |
[2024-04-04 15:01:55] |
Sierra_Chart Engineering - Posts: 17166 |
This is good.
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, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: