Date/Time: Fri, 18 Jan 2019 10:40:48 +0000
Post From: Offering To The Community: Brett Johnson's Standard Tool Kit
|bjohnson777 (Brett Johnson) - Posts: 251|
I recompiled the main DLL because of some recent updates that broke older compatibility. This happens from time to time as the SC dev's add new functions. Source code is still the same.
If anyone runs into strange problems, it's usually fixed by a quick and easy recompile:
* Download and save the .cpp file in your ACS_Source directory.
* Run SC but don't open any chart windows yet. If you have auto-load running, try closing them out. The source will recompile, but it will complain about the DLL being loaded in the background.
* Go to Analysis >> Build Custom Studies DLL.
* Hit "Select File(s)". In the ACS_Source directory, look for the .cpp file you just saved. Select it and hit Open.
* Hit the "Remote Build" button. This will take a minute to do. It may return some warnings. So long as they're not fatal, it's fine. If you've already opened chart windows, there will be an error about the DLL already being loaded. We'll fix that in the next step.
* If you haven't loaded any chart windows yet, you can do so now. The programs in the DLL should run normally again. If you've had some chart windows open and got the DLL error above, exit and run SC again.
These steps should get you running again. They're also pretty universal and should work with other people's .cpp files, too. If you get stuck, the SC dev's have a compile instruction page in the documentation that can help.
Question: Should I recompile on a regular basis?
Answer: That depends on what you're using and how deep it goes. If you see an error that doesn't look right, do a recompile. If you're paranoid, go ahead and do a recompile every new SC release version you install. I try to keep all my source code in the DLL to make this a single and simple operation. If you're running code from other people who also have a lot of chart studies/programs, encourage them to build a single DLL like I did. My code and the examples in the ACS_Source directory can be used as a template.
Date Time Of Last Edit: 2017-04-10 04:58:01