Login Page - Create Account

Support Board


Date/Time: Fri, 29 Mar 2024 10:48:35 +0000



Windows Error Code 126

View Count: 1097

[2014-09-21 07:20:34]
esMike - Posts: 67
I have a strange problem I cannot solve. I recently reformatted my laptop and re-installed everything.

When I try to load a chartbook with my custom studies gives me that error code... On this PC with the same operating system "Vista" everything works perfect. The data folder is copied over and identical on the laptop.

I go into Analysis > Studies > Add Custom Study... And the DLL's for the custom studies are there! However, there is no "+" sign next to them. So it's recognizing the files... But for some reason windows wont let SierraChart load them?

Both SierraChart versions are the same. I also tried other versions too. Everything is the same except the laptop gives Error code 126. I will install Visual Studio 2010 this week on that laptop. That will probably fix the problem.
Date Time Of Last Edit: 2014-09-21 07:24:44
[2014-09-21 07:37:11]
esMike - Posts: 67
Fixed the problem...

I went into Visual Studio 2010 Express... I changed the Project Defaults "Use of MFC" from "Use Standard Windows Libraries" to "Use MFC in a Static Library" and recompiled the DLL's. My laptop can use them now!

You should add this note to the DLL help page.

Only downside is the DLL's are much bigger...
Date Time Of Last Edit: 2014-09-21 07:38:16
[2014-10-11 22:52:59]
Sierra Chart Engineering - Posts: 104368
The documentation has been updated to indicate how to statically link with the Runtime Libraries:
http://www.sierrachart.com/index.php?page=doc/doc_VCExpress.php#ConfigureProject

There is no mention of MFC because the instructions do not indicate to use MFC. But if you are using MFC , definitely use it in a static library.

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: 2014-10-11 22:53:27
[2014-10-11 23:46:53]
esMike - Posts: 67
I am using Visual C++ 2010 Express.

It does not give the option to not use MFC... There are three options in Configuration Properties > General > Use of MFC: "Use Standard Windows Libraries", "Use MFC in a Static Library", or "Use MFC in a Shared DLL".
[2014-10-11 23:59:44]
Sierra Chart Engineering - Posts: 104368
Actually it does give you the option but the language might be deceiving. You need to choose:

"Use Standard Windows Libraries"

Also refer to step 8 here:
http://www.sierrachart.com/index.php?page=doc/doc_VCExpress.php#ConfigureProject
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
[2014-10-12 00:20:37]
esMike - Posts: 67
Yes, but those DLL's will only work on my PC... As I said originally. "Use Windows Standard Libraries" will not work on my laptop or other Vista Computer. See original post.

Those DLL's compiled with that option will not work on any of my computers that use Windows Vista without Visual Studio C++ Installed. They will also not work on some other Windows operating systems like Server 2000 and etc... Until Visual Studio C++ is installed too.
Date Time Of Last Edit: 2014-10-12 00:22:50
[2014-10-12 03:13:26]
Sierra Chart Engineering - Posts: 104368
When setting "Use Windows Standard Libraries", the DLL will work on any system without Visual C++ installed as long as you follow step 8 here:

http://www.sierrachart.com/index.php?page=doc/doc_VCExpress.php#ConfigureProject

This we are certain of.

Unless the option we mention in step 8 is not available in your version of Visual C++ but it should be because you can statically link to MFC.

The dependency that is being created and prevents the DLL from working on other systems is not with MFC, but what is known as the Visual C++ runtime libraries. These are separate from MFC.



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: 2014-10-12 03:25:46

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

Login

Login Page - Create Account