I am trying to build the listener project using VC++6. But I get such errors:%26lt;br /%26gt;//==============================================================/%26lt;br /%26gt;--------------------Configuration: Listener - Win32 Debug--------------------%26lt;br /%26gt;Compiling resources...%26lt;br /%26gt;E:\FYP\test\Listener\Listener.rc(152) : fatal error RC1015: cannot open include file 'Listener.pipl'.%26lt;br /%26gt;Error executing rc.exe.%26lt;br /%26gt;E:\FYP\test\Listener\Listener.rc(152): Could not find the file Listener.pipl.%26lt;br /%26gt;E:\FYP\test\Listener\Listener.rc(153): Could not find the file About.rc.%26lt;br /%26gt;%26lt;br /%26gt;Auto.8li - 1 error(s), 0 warning(s)%26lt;br /%26gt;//==============================================================/%26lt;br /%26gt;%26lt;br /%26gt;if I comment the two lines that cause error, many errors come out as following:%26lt;br /%26gt;%26lt;br /%26gt;//==============================================================/%26lt;br /%26gt;--------------------Configuration: Listener - Win32 Debug--------------------%26lt;br /%26gt;Compiling resources...%26lt;br /%26gt;Compiling...%26lt;br /%26gt;Listener.cpp%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2065: 'PSAliasSuite' : undeclared identifier%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2955: 'AutoSuite' : use of class template requires template argument list%26lt;br /%26gt; e:\fyp\code\samplecode\common\includes\piusuites.h(28) : see declaration of 'AutoSuite'%26lt;br /%26gt;e:\fyp\test\listener\common\listener.cpp(301) : error C2660: 'GetFullPathToDesktop' : function does not take 2 parameters%26lt;br /%26gt;ListenerScripting.cpp%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2065: 'PSAliasSuite' : undeclared identifier%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2955: 'AutoSuite' : use of class template requires template argument list%26lt;br /%26gt; e:\fyp\code\samplecode\common\includes\piusuites.h(28) : see declaration of 'AutoSuite'%26lt;br /%26gt;ListenerUI.cpp%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2065: 'PSAliasSuite' : undeclared identifier%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2955: 'AutoSuite' : use of class template requires template argument list%26lt;br /%26gt; e:\fyp\code\samplecode\common\includes\piusuites.h(28) : see declaration of 'AutoSuite'%26lt;br /%26gt;e:\fyp\test\listener\common\listenerui.cpp(115) : error C2660: 'GetCurrentSelection' : function does not take 1 parameters%26lt;br /%26gt;e:\fyp\test\listener\common\listenerui.cpp(184) : error C2660: 'GetCurrentSelection' : function does not take 1 parameters%26lt;br /%26gt;e:\fyp\test\listener\common\listenerui.cpp(259) : error C2660: 'GetCurrentSelection' : function does not take 1 parameters%26lt;br /%26gt;e:\fyp\test\listener\common\listenerui.cpp(330) : error C2664: 'SetText' : cannot convert parameter 1 from 'class std::basic_string%26lt;char,struct std::char_traits%26lt;char%26gt;,class std::allocator%26lt;char%26gt; %26gt;' to 'const char *'%26lt;br /%26gt; No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called%26lt;br /%26gt;ListenerUIWin.cpp%26lt;br /%26gt;e:\fyp\test\listener\listeneruiwin.cpp(28) : fatal error C1083: Cannot open include file: 'Listener.h': No such file or directory%26lt;br /%26gt;Error executing cl.exe.%26lt;br /%26gt;%26lt;br /%26gt;Auto.8li - 12 error(s), 0 warning(s)%26lt;br /%26gt;%26lt;br /%26gt;//==============================================================/%26lt;br /%26gt;%26lt;br /%26gt;Anybody could help me with this? Thanks.Error when try to build listener project
Seems like visual studio does not know where the listener.pipl and the about.rc files are located. The listener.pipl is created/builded by a custom build step, by default this custom build step puts the created listner.pipl into the objects folder, you don't want it there though:
Either:
- copy the listener.pipl file next to your listener.r file
- change the custum build step (=%26gt; Project settings =%26gt; custom build step), there you will find the output-dir parameter, which should look something like:
''$(IntDir)\$(InputName).pipl''
Now, either change the IntDir macro (which originaly points to the obj folder), or simply change this to
''..\win\$(InputName).pipl''
About the about.rc : either copy this next to your implementation files or make sure that in you project settings under:
''configuration properties-%26gt;c/c++-%26gt;additional include directories''
you have added the path to the ''Adobe Photoshop CS3 SDK\samplecode\common\resources'' folder of the sdk.
If that doesn't work remove all references to the about-dialog-box from listener (i.e. don't display an about box anymore); about.rc is just the ressource definition for the default about-box of plugins.
Error when try to build listener project
Marc Twiehaus, thank you very much for your detailed explanation. You are so professional! Now the first problem solved. Hehe, very happy! But still cannot debug all the errors. Seems they are related to a class template called ''PSAliasSuite'' of class ''AutoSuite'' in the file: amplecode\common\includes\piusuites.h
What might the problem be? This is the SDK file, which is supposed to be error free....
No problem, and no I'm not that professional (maybe in a couple of years ; ) - just trying to help with stuff I think usefull for a beginner, but thanks a lot. Now, to your problem:
I guess its again a path issue, the example plugins need to include files from more than one location:
- the PIUSuites.h for example is located in:
[...]\Adobe Photoshop CS3 SDK\samplecode\common\includes
- and the PIUSuites.cpp is in:
[...]\Adobe Photoshop CS3 SDK\samplecode\common\sources
While the PIAliasSUite.h is in:
[...]\Adobe Photoshop CS3 SDK\photoshopapi\photoshop\
Make sure that you have included those paths in your project settings,
either relative to your project or directly, if that doesn't help please post the compile errors here and I will try to help you, if I can.
Ah - just remembered something else!
Take a look at:
http://www.codeproject.com/tools/prjconverter.asp?df=100%26amp;forumid=10069%26amp;exp=0%26amp;sel ect=1319254
This converts Visual C++ 7.0 projects back to Visual C++ 6.0 projects, so with this you should be able to use the workspaces/solutions that came with the sdk instead of having to reconstruct them yourself : )
Hi brother!!You are so great!!!I really really thank you! All the problems have been solved till now, following your instructions. Haha, so relieved. I love you man!
Great! Glad I could help you with this.
Subscribe to:
Post Comments
(Atom)
Hello:
ReplyDeleteI'm totally newbye with C++ and i running Visual studio 6.0 in vista 64.
I done my own software in Visual Basic, and is called from a script, and i have another scripts to convert images and send to my application in Visual Basic 6.0. Now i need to convert my scripts to Plugin and of course i need programming in C++.
I have a similar problem when i try to buid the automation project:
when i do de build procedure i get a new folder (File view external dependencies ) and i see a lot of C headers and apparentelly all they are there but still i get this errors.
Please forguive my poor English.
this is the errors i get:
--------------------Configuration: Auto - Win32 Debug--------------------
Compiling...
Auto.cpp
c:\adobe photoshop 6.0 sdk\samplecode\common\includes\piusuites.h(46) : error C2065: 'PSAliasSuite' : undeclared identifier
c:\adobe photoshop 6.0 sdk\samplecode\common\includes\piusuites.h(46) : error C2955: 'AutoSuite' : use of class template requires template argument list
c:\adobe photoshop 6.0 sdk\samplecode\common\includes\piusuites.h(28) : see declaration of 'AutoSuite'
c:\adobe photoshop 6.0 sdk\samplecode\automation\auto\common\auto.cpp(38) : error C2040: 'sPSActionDescriptor' : 'struct PSActionDescriptorProcs *' differs in levels of indirection from 'class AutoSuite'
c:\adobe photoshop 6.0 sdk\samplecode\automation\auto\common\auto.cpp(39) : error C2040: 'sPSActionReference' : 'struct PSActionReferenceProcs *' differs in levels of indirection from 'class AutoSuite'
c:\adobe photoshop 6.0 sdk\samplecode\automation\auto\common\auto.cpp(40) : error C2040: 'sPSActionControl' : 'struct PSActionControlProcs *' differs in levels of indirection from 'class AutoSuite'
c:\adobe photoshop 6.0 sdk\samplecode\automation\auto\common\auto.cpp(41) : error C2040: 'sPSActionList' : 'struct PSActionListProcs *' differs in levels of indirection from 'class AutoSuite'
c:\adobe photoshop 6.0 sdk\samplecode\automation\auto\common\auto.cpp(43) : error C2146: syntax error : missing ';' before identifier 'MySuites'
c:\adobe photoshop 6.0 sdk\samplecode\automation\auto\common\auto.cpp(43) : error C2501: '_AcquireList' : missing storage-class or type specifiers
c:\adobe photoshop 6.0 sdk\samplecode\automation\auto\common\auto.cpp(43) : fatal error C1004: unexpected end of file found
PIUGet.cpp
PIUNew.cpp
PIUSuites.cpp
Error executing cl.exe.
Auto.8li - 9 error(s), 0 warning(s)