I am planning to develop a custom ProjectWise API using C++ in Microsoft Visual Studio 2008 and am having trouble determining which "Project Type" to create. The API will be called from another application and passed a parameter which will search ProjectWise for documents meeting some criteria and then if those documents are found a window would pop up that includes links to each document.
I have developed other PW API's in VS 2005 using MFC Application and WIn32 Console Application types but I don't think they will work because I need to open a window, just not at startup time. I tried starting a project using a Windows Forms Application type and was able to open a custom window later, but when I tried setting it up to use the API functions like I normally would for an MFC application, I got compiler errors from several of the API header files and got stuck. Any suggestions?
Thanks,
Stephanie
To answer the question about multiple parent folders. The variable "value" which is the last argument in aaApi_SQueryCriDataBufferAddCriterion, is the Group. Criterion which is AND has the same Group value, Criterion that is OR'ed has a different Group. So each Include Subfolders criteria will have the same Group as the parent folder it is paired with.
Are you trying to write a PW Explorer extension or do something else? I've attached the template I use for relatively simple VS 2010 extension DLLs. Directions are in the readme.
Take a look at the sample Visual Studio solutions/projects that are shipped with the ProjectWise SDK. We compile those solutions as part of our product build to ensure that they work on users' computers, so you should be able to look at the build settings used in the samples and compare them to the build settings you are using for your project.
HTH
Mike
2010.
WRT DeanLyon's code, I'm haven't used the functions to create queries before, but since my search procedure is taking so long to process I'm going to give it a whirl and use the documentlistframe function to display. I do have a couple of questions about how to adapt this to my search. There are several specific parent folders (and all their subs) that I want to perform the search on. Is there are way to specify these projects in the query? Also, since I'm getting compiler errors when including some of the PW header files, I'm not sure how to get a Win32 Project to work or if I should create a different Visual Studio project type to start with.
What version of Visual Studio are you using to compile your module ?