Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 00:23:19 +0000



Post From: Access data using GDIFunction DrawToChart()

[2024-01-19 12:16:55]
User895355 - Posts: 55
I'm having an issue understanding how to use the
PersistentPointers
. Can you help me out here?

for (auto it = tpo.begin(); it != tpo.end(); it++)
{
auto val1 = it->first;
auto val2 = it->second;
sc.SetPersistentPointer(sc.Index, &val1);
sc.p_GDIFunction = DrawToChart;
}

Then in DrawToChart()...
void *val1 = sc.GetPersistentPointer(sc.Index);

Date Time Of Last Edit: 2024-01-19 12:30:43