Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 12:56:00 +0000



[Programming Help] - s_VolumeLevelAtPrice Compilation error

View Count: 385

[2023-03-24 17:24:27]
User411647 - Posts: 19
Hi guys

Its not possible compilate this code....
Before compil. without errors
Any solution please ??
s_VolumeLevelAtPrice* p_VolumeLevelAtPrice = nullptr;

  int BarIndex = sc.Index;
  int VAPSizeAtBarIndex = sc.p_VolumeLevelAtPriceForBars->GetSizeAtBarIndex(BarIndex);
  unsigned int MaxTradeVol = 0;
  float MaxTradePrice = 0.0f;

  for (int VAPIndex = 0; VAPIndex < VAPSizeAtBarIndex; VAPIndex++) {
    if (!sc.p_VolumeLevelAtPriceForBars->GetVAPElementAtIndex(BarIndex, VAPIndex, &p_VolumeLevelAtPrice))
      break;

    unsigned int maxTradeVolAtPrice = sc.p_VolumeLevelAtPriceForBars->GetMaxVolumeAtPrice(BarIndex, p_VolumeLevelAtPrice->PriceInTicks);

    if (maxTradeVolAtPrice > MaxTradeVol)
    {
      MaxTradeVol = maxTradeVolAtPrice;
      MaxTradePrice = sc.TicksToPriceValue(p_VolumeLevelAtPrice->PriceInTicks);
    }
  }


1>Dll18.obj : error LNK2019: Nerozpoznaný externí symbol _CrtDbgReport odkazovaný ve funkci "void __cdecl std::_Verify_range<struct s_VolumeLevelAtPrice>(struct s_VolumeLevelAtPrice const * const,struct s_VolumeLevelAtPrice const * const)" (??$_Verify_range@Us_VolumeLevelAtPrice@@@std@@YAXQEBUs_VolumeLevelAtPrice@@0@Z)
1>..\..\..\..\..\..\SierraChartWithCQG\Data\Dll18.dll : fatal error LNK1120: Počet nerozpoznaných externích typů: 1
1>Sestavení projektu Dll18.vcxproj bylo dokončeno: CHYBA.
========== Nové sestavení: úspěšná: 0, neúspěšná: 1, přeskočilo se: 0 ==========
[2023-05-07 12:14:51]
Sierra_Chart Engineering - Posts: 17201
It is hard to understand what the error is because it is not in English.

We are not understanding what the error is here. Can you translate 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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-05-07 15:38:26]
User411647 - Posts: 19
Hi

I had a similar problem with VS2017, now Iam using VS2022 and changing the runtime library setting to /Mtd solved the problem
Now compil without problems

regards

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

Login

Login Page - Create Account