I'm trying to figure out how to send and event to my CS extension from InDesign C++ code. Zak Nelson's talk "Converting your existing Flex, ExtendScript, & C++ to the CS SDK" covers this, but I cannot find the header in the InDesign SDK that allows me to used the csxs::sdk classes. The code of his that I am trying to copy is pasted below. The problem is that the compiler does not know about csxs::event::Event because I have not included and header which declares this class. I can't find it in the Indesign SDK or the CSSDK. How do I get this to work?
nativeEvent.type = "com.example.myEventID";
nativeEvent.scope = csxs::event::kEventScope_Global;
nativeEvent.appId = "IDSN";
nativeEvent.extensionId = com.example.myExtensionID"; // can leave this null
nativeEvent.data = "<root><node>someData</node></root>"; // optional
csxs::event::EventErrorCode result = csxs::sdk::DispatchEvent( &nativeEvent );
This was posted a long time ago, but in case it helps someone else, you need to get what's called the Adobe Creative Suite Extension Builder Native Application toolkit from Adobe's download site (http://www.adobe.com/devnet/creativesuite/extensionbuilder.html)