Classe plugin not recognized


good afternoon,

 

i have plugin class heritage problem.

 

i use the library plugin (plugin.hpp and plugin.cpp) illustrator sdk in c ++.

i use in same way than in example admnonmodaldialog.
i have not integrated .hpp , .cpp into visual studio 2005 project file.

but put the directories of libraries in project.
in my header file i put # include "plugin.hpp"
i also put the function plugin* allocateplugin (sppluginref pluginref) in source (and header course).

the problem that the compiler always tells me:

     myclass.cpp(21) : error c2143: syntax error : missing ';' before '*'

                         (why the library is recognized class doesn't ??)

     myclass.cpp(21) : error c2512: 'myclass' : no appropriate default constructor available

                         (i built same way in the project admnonmodaldialog with a dialog  and three handle)

     myclass.cpp(22) : error c4430: missing type specifier - int assumed. note: c++ not support default-int

     myclass.cpp(22) : error c2556: 'int *allocateplugin(sppluginref)' : overloaded function differs return type 'plugin *allocateplugin(sppluginref)'

          myclass.h(33) : see declaration of 'allocateplugin'

     myclass.cpp(22) : error c2371: 'allocateplugin' : redefinition; different basic types

          myclass.h(33) : see declaration of 'allocateplugin'

     myclass.cpp(30) : error c2065: 'plugin' : undeclared identifier

     myclass.cpp(31) : error c2448: 'fixupreload' : function-style initializer appears function definition

 

i am in impasse for resolution because compiler find correctly library but i can not use object.

thank you in advance the help can give me.
sincerely,



More discussions in Illustrator


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support