02-04-2015, 12:53 AM
I have gotten this to work in our Skeleton sample project in the manner I would expect (i.e. no workarounds), so I'm curious what you've done with your project that has caused the error(s).
Here are the steps I took:
- Add the Illustrator SDK headers to the Skeleton project and put the path to the SDK headers in the #includes search path.
- #include the SPBasic.h file and AIUser.h file in the skelPlugin.cpp file.
- Extern the SPBasicSuite global with "extern "C" SPBasicSuite* sSPBasic;"
- Declare the AIUserSuite global with "AIUserSuite* sAIUser = NULL;"
- Acquire the AIUserSuite pointer with "sSPBasic->AcquireSuite(kAIUserSuite, kAIUserSuiteVersion, (const void**) &sAIUser);" in the skel:lugin:tartup() method.
This compiles, runs, and acquires the suite just fine. If you could try it on your end, that would be helpful. If you still can't resolve the problem, perhaps you could describe what you've done to acquire the suite in your project as well as any compilation errors you receive.
Here are the steps I took:
- Add the Illustrator SDK headers to the Skeleton project and put the path to the SDK headers in the #includes search path.
- #include the SPBasic.h file and AIUser.h file in the skelPlugin.cpp file.
- Extern the SPBasicSuite global with "extern "C" SPBasicSuite* sSPBasic;"
- Declare the AIUserSuite global with "AIUserSuite* sAIUser = NULL;"
- Acquire the AIUserSuite pointer with "sSPBasic->AcquireSuite(kAIUserSuite, kAIUserSuiteVersion, (const void**) &sAIUser);" in the skel:lugin:tartup() method.
This compiles, runs, and acquires the suite just fine. If you could try it on your end, that would be helpful. If you still can't resolve the problem, perhaps you could describe what you've done to acquire the suite in your project as well as any compilation errors you receive.