http://partners.adobe.com/public/dev...IReference.pdf
Now, I've had minimal experience using win32 api for visual c++. However, I can't really tell what the guide is referring to in certain things. It just assumes you know the environment (win32?, MFC?, ATL?) and where to insert the code examples.
All I really need is to get a working API call of any kind. If I can get even a message popup from the api, I've got somewhere to start.
Thanks for any help.
BTW, I've got visual studio 2005, distiller and the adobe SDK. When I open a new c++ project, I get:
Expand|Select|Wrap|Line Numbers
- #include "stdafx.h"
- int _tmain(int argc, _TCHAR* argv[])
- {
- return 0;
- }
Expand|Select|Wrap|Line Numbers
- DISTILLRECORD dr;/* from distctrl.h */
- COPYDATASTRUCT cds;
- BOOL ok;
- LRESULT rtn;
- WORD res=0;
- char msg[ 80];
- hinst = ShellExec( NULL, "acrodist.exe", strCmdArgs, NULL, SW_SHOW);
- if (res<32){
- sprintf(msg, "WinExec failed: error code = %d", res);
- return;
- }
- CWnd *hDistillerCWnd = FindWindow("Distiller", NULL);
- if (hDistillerCWnd != NULL)
- {
- strcpy(dr.outputFile, "c:\\ OUT.PDF");
- strcpy(dr.fileList, "C:\\ TEST.PS");
- dr.param = EQ_NO_SAVE_DIALOG;/* from distctrl.h */
- cds.dwData = DM_DISTILL;
- cds.cbData = sizeof(DISTILLRECORD);
- cds.lpData = (PVOID)&dr;
- ok = (BOOL)hDistillerCWnd->SendMessage(WM_COPYDATA,
- (WPARAM)m_hWnd, (LPARAM)&cds);
- if (ok)
- /* wake up Distiller */
- hDistillerCWnd->PostMessage(WM_TIMER, ID_TIMER, 0L);
- }