Problem with TeeEditor in 64 bit app

TeeChart for ActiveX, COM and ASP
Post Reply
PetexUser
Newbie
Newbie
Posts: 2
Joined: Mon Oct 15, 2018 12:00 am

Problem with TeeEditor in 64 bit app

Post by PetexUser » Tue Jul 16, 2019 1:51 pm

Hi

We are using the TeeChart Pro v2018 ActiveX Control in our C++ applications
We provide access to the chart properties using the TeeEditor tool ( via a form button)

Initialise:

Code: Select all

m_TeeEditor.SetChartLink(m_pChart->GetChartLink());
Show TeeChart properties Button response:

Code: Select all

m_pChart->TeeEditorShowEditor();
We notice that GetChartLink returns a LONG and not a DWORD.
In 64 bit where high memory is addressed GetChartLink() returns a negative value.
The result is the TeeEditor cannot be displayed.

I can also see many similar tool methods return a LONG instead of a DWORD .
Is this an issue Steema is aware of ?

I look forward to your response

kind regards
Mark

Pep
Site Admin
Site Admin
Posts: 3165
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Problem with TeeEditor in 64 bit app

Post by Pep » Mon Jul 22, 2019 7:32 am

Hello Marc,

for 64 bit you have to use :

Code: Select all

m_TeeEditor.SetChartLink64(m_pChart->GetChartLink64());

PetexUser
Newbie
Newbie
Posts: 2
Joined: Mon Oct 15, 2018 12:00 am

Re: Problem with TeeEditor in 64 bit app

Post by PetexUser » Mon Jul 22, 2019 12:56 pm

Hi Pep,

Thank you for you support.
I somehow missed the x64 API calls.

Everything works fine now.

kindest regards
Mark

Post Reply