Hi Steema Team,
We are facing some issue on teechart in our project. We are sending demo project but issue is not replicated on demo. The same scenario arises on our project.
We are using Teechart active X 2018. Here we are taking scMap series for polygon plotting, scPoint3D, scMap series for editing polygon.
Working of edit polygon:
On edit polygon we are adding scPoint3D, scMap series. Points are shown by scPoint3D and highlighted polygon is shown by scMap series. When we pick any point to edit polygon, we get two adjacent point of picking point on mouse down event and show dashed polygon by connecting adjacent point through picking point by dashed line on mouse move event.
On performing following scenario, arises the issue on tee chart:
First plot polygon then edit polygon. It gives type mismatch error.
We would also like to put to your notice that our project uses both 32 bit and 64 bit tchart ocx for different sub projects. So we are not sure if this is causing the issue.
Can you please suggest any fix or workaround?
Thanks and Regards
Bhanu
Type mismatch issue on teechart.
Type mismatch issue on teechart.
- Attachments
-
- DemoApplication.7z
- (223.73 KiB) Downloaded 1353 times
Re: Type mismatch issue on teechart.
Hello,
I'm not able to build your project with VS2019.
The first errors say the following files can't be found: "afxdialogex.h", "afxwin.h", "afxext.h", "afxdisp.h", "afxdtctl.h", "afxcmn.h" and "afxcontrolbars.h".
We'd need a simple example project we can run as-is to reproduce the problem here.
Thanks in advance.
I'm not able to build your project with VS2019.
The first errors say the following files can't be found: "afxdialogex.h", "afxwin.h", "afxext.h", "afxdisp.h", "afxdtctl.h", "afxcmn.h" and "afxcontrolbars.h".
We'd need a simple example project we can run as-is to reproduce the problem here.
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Type mismatch issue on teechart.
Hi Steema Team,
I have build this project on VS2013 and have verified on different machines. You can download the project and try to run on VS2013 and it will run as is.
Thanks and Regards
Bhanu
I have build this project on VS2013 and have verified on different machines. You can download the project and try to run on VS2013 and it will run as is.
Thanks and Regards
Bhanu
Re: Type mismatch issue on teechart.
After installing a fresh VS2013 into a fresh Windows 10 virtual machine, I open the project and get this error:
I've modified the "Character Set" in the project properties to "Use Unicode Character Set" . Then, I get 8 errors and 20 warnings. I'll only post the errors here:
Code: Select all
Error 1 error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets 369 5 DemoApplication
Code: Select all
Error 2 error C2440: 'initializing' : cannot convert from 'const char [2]' to 'ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>>>' C:\Users\admin\Downloads\DemoApplication\DemoApplicationDlg.cpp 193 1 DemoApplication
Error 4 error C2664: 'long CSeries::AddXY(double,double,LPCTSTR,unsigned long)' : cannot convert argument 3 from 'const char [1]' to 'LPCTSTR' C:\Users\admin\Downloads\DemoApplication\DemoApplicationDlg.cpp 307 1 DemoApplication
Error 7 error C2665: 'AfxMessageBox' : none of the 2 overloads could convert all the argument types C:\Users\admin\Downloads\DemoApplication\DemoApplicationDlg.cpp 592 1 DemoApplication
Error 12 error C2664: 'long CSeries::AddXY(double,double,LPCTSTR,unsigned long)' : cannot convert argument 3 from 'const char [1]' to 'LPCTSTR' C:\Users\admin\Downloads\DemoApplication\DemoApplicationDlg.cpp 679 1 DemoApplication
25 IntelliSense: no suitable constructor exists to convert from "const char [2]" to "ATL::CStringT<wchar_t, StrTraitMFC_DLL<wchar_t, ATL::ChTraitsCRT<wchar_t>>>" c:\Users\admin\Downloads\DemoApplication\DemoApplicationDlg.cpp 193 17 DemoApplication
26 IntelliSense: argument of type "const char *" is incompatible with parameter of type "LPCTSTR" c:\Users\admin\Downloads\DemoApplication\DemoApplicationDlg.cpp 307 73 DemoApplication
27 IntelliSense: no instance of overloaded function "AfxMessageBox" matches the argument list
argument types are: (const char [47]) c:\Users\admin\Downloads\DemoApplication\DemoApplicationDlg.cpp 592 4 DemoApplication
28 IntelliSense: argument of type "const char *" is incompatible with parameter of type "LPCTSTR" c:\Users\admin\Downloads\DemoApplication\DemoApplicationDlg.cpp 679 73 DemoApplication
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |