Hi,
it seems to be possible to add a menu in excel but i found no example (not enought documented :'() about this
#include <xlw/xlfWindows.h>
#include <xlw/XlfMenu.h>
using namespace xlw;
void test(void)
{
XlfMenu myMenu();
}
1>------ Build started: Project: XLL, Configuration: Debug x64 ------
1>Build started 22/05/2011 06:39:27.
1>ClCompile:
1> myMenu.cpp
1>C:\Program Files (x86)\XLW\xlw-5DEV\xlw\include\xlw/XlfMenu.h(59): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\XLW\xlw-5DEV\xlw\include\xlw/XlfMenu.h(59): warning C4183: 'XlfMenuItem': missing return type; assumed to be a member function returning 'int'
1>C:\Program Files (x86)\XLW\xlw-5DEV\xlw\include\xlw/XlfMenu.h(62): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\XLW\xlw-5DEV\xlw\include\xlw/XlfMenu.h(62): error C2143: syntax error : missing ',' before '&'
1>C:\Program Files (x86)\XLW\xlw-5DEV\xlw\include\xlw/XlfMenu.h(66): error C2923: 'std::tr1::shared_ptr' : 'xlw::XlfMenu::XlfMenuItem' is not a valid template type argument for parameter '_Ty'
1>C:\Program Files (x86)\XLW\xlw-5DEV\xlw\include\xlw/XlfMenu.h(66): error C3203: 'shared_ptr' : unspecialized class template can't be used as a template argument for template parameter '_Ty', expected a real type
1>C:\Program Files (x86)\XLW\xlw-5DEV\xlw\include\xlw/XlfMenu.h(66): error C2955: 'std::tr1::shared_ptr' : use of class template requires template argument list
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(1418) : see declaration of 'std::tr1::shared_ptr'
1>C:\Program Files (x86)\XLW\xlw-5DEV\xlw\include\xlw/XlfMenu.h(80): error C2143: syntax error : missing ';' before '}'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:03.05
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Please provide a example OR remove xlfMenu.h and support about menu
Thanks
Allan
As I explained here:
https://sourceforge.net/tracker/?func=detail&atid=442236&aid=3305642&group_id=45222
This file was added in error, thanks for the report.
John