I'm trying to use wxWidgets in an Illustrator plugin that I'm working on - but I keep getting this error when building:
Code: Select all
Build started...
1>------ Build started: Project: ArcPlugin, Configuration: Debug x64 ------
1> performing: python ..\..\tools\pipl\create_pipl.py -input "[{\"name\":\"ArcPlugin\"}]"
1>ArcPlugin.cpp
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(213,37): error C2660: 'strcpy_s': function does not take 2 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(27,30): message : see declaration of 'strcpy_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(218,46): error C2660: 'strcpy_s': function does not take 2 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(27,30): message : see declaration of 'strcpy_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(220,49): error C2660: 'strcpy_s': function does not take 2 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(27,30): message : see declaration of 'strcpy_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(223,44): error C2660: 'strcpy_s': function does not take 2 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(27,30): message : see declaration of 'strcpy_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(232,56): error C2660: 'strcpy_s': function does not take 2 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(27,30): message : see declaration of 'strcpy_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(238,41): error C2660: 'strncpy_s': function does not take 3 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(55,30): message : see declaration of 'strncpy_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(243,50): error C2660: 'strncpy_s': function does not take 3 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(55,30): message : see declaration of 'strncpy_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(245,53): error C2660: 'strncpy_s': function does not take 3 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(55,30): message : see declaration of 'strncpy_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(248,48): error C2660: 'strncpy_s': function does not take 3 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(55,30): message : see declaration of 'strncpy_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(257,60): error C2660: 'strncpy_s': function does not take 3 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(55,30): message : see declaration of 'strncpy_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(293,37): error C2660: 'strcat_s': function does not take 2 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(34,30): message : see declaration of 'strcat_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(298,46): error C2660: 'strcat_s': function does not take 2 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(34,30): message : see declaration of 'strcat_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(300,49): error C2660: 'strcat_s': function does not take 2 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(34,30): message : see declaration of 'strcat_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(303,44): error C2660: 'strcat_s': function does not take 2 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(34,30): message : see declaration of 'strcat_s'
1>c:\wxwidgets-3.1.5\include\wx\wxcrt.h(312,56): error C2660: 'strcat_s': function does not take 2 arguments
1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(34,30): message : see declaration of 'strcat_s'
1>Done building project "ArcPlugin.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Code: Select all
#include "wx\frame.h"
...
ASErr ArcPlugin::AddPanelControls()
{
AIErr error = kNoErr;
AIPanelPlatformWindow hDlg = NULL;
error = sAIPanel->GetPlatformWindow(fPanel, hDlg);
wxFrame* pluginPanelWX = new wxFrame(
NULL,
wxID_ANY,
"",
{ 400, 400 },
{ 400, 400 },
wxBORDER_NONE,
"ArcPluginPanelWindow"
);
pluginPanelWX->Show();
return error;
}
Anyone have any ideas?