Click here to Skip to main content
15,909,651 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAdobe Reader : #import "...\acrobat.tbl" : Getting Compile Error Pin
snacker214-Apr-09 9:43
snacker214-Apr-09 9:43 
I'm using VC++ Express Edition.
The Adobe Acrobat sdk is a zip file located here:
http://download.macromedia.com/pub/developer/acrobat/sdk/9/sdk9_v1_win.zip[^]

My stdafx.h has:
#import "c:\junk\adobe\acrobat.tlb" no_namespace


My main.cpp is:
#include "stdafx.h"<br />
<br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
	AcroApp app;<br />
	return 0;<br />
}<br />


When I compile I get the following error:
error C2079: 'app' uses undefined struct 'AcroApp'

If I change "AcroApp app;" to "AcroApp* app" it compiles with only a warning that "app" is an "unreferenced local variable".

It looks like VC++EE created the acrobat.tlh and "knows" about the AcroApp/CAcroApp type.
The acrobat.tlh shows that CAcroApp inherits from IDispatch[^], so I'm assuming that is COM related.

I guess my question is... how to I create an instance of the AcroApp class?
AnswerRe: Adobe Reader : #import "...\acrobat.tbl" : Getting Compile Error Pin
snacker214-Apr-09 11:24
snacker214-Apr-09 11:24 
Questionapplication scripting advice Pin
Dave Calkins14-Apr-09 7:45
Dave Calkins14-Apr-09 7:45 
AnswerRe: application scripting advice Pin
CPallini14-Apr-09 9:24
mveCPallini14-Apr-09 9:24 
GeneralRe: application scripting advice Pin
Dave Calkins14-Apr-09 9:58
Dave Calkins14-Apr-09 9:58 
QuestionRe: application scripting advice Pin
CPallini14-Apr-09 22:55
mveCPallini14-Apr-09 22:55 
QuestionMFC static variable Pin
bhanu_850914-Apr-09 7:44
bhanu_850914-Apr-09 7:44 
QuestionRe: MFC static variable Pin
Eytukan14-Apr-09 8:25
Eytukan14-Apr-09 8:25 
AnswerRe: MFC static variable Pin
bhanu_850914-Apr-09 8:31
bhanu_850914-Apr-09 8:31 
AnswerRe: MFC static variable Pin
Iain Clarke, Warrior Programmer14-Apr-09 8:57
Iain Clarke, Warrior Programmer14-Apr-09 8:57 
GeneralRe: MFC static variable Pin
bhanu_850914-Apr-09 9:02
bhanu_850914-Apr-09 9:02 
GeneralRe: MFC static variable Pin
Iain Clarke, Warrior Programmer14-Apr-09 9:11
Iain Clarke, Warrior Programmer14-Apr-09 9:11 
GeneralRe: MFC static variable Pin
CPallini14-Apr-09 9:19
mveCPallini14-Apr-09 9:19 
AnswerRe: MFC static variable Pin
Nemanja Trifunovic14-Apr-09 9:02
Nemanja Trifunovic14-Apr-09 9:02 
AnswerRe: MFC static variable Pin
Rajesh R Subramanian14-Apr-09 20:24
professionalRajesh R Subramanian14-Apr-09 20:24 
Questiongpedit.msc from VC++ Pin
neelu777914-Apr-09 4:25
neelu777914-Apr-09 4:25 
AnswerRe: gpedit.msc from VC++ Pin
Michael Schubert14-Apr-09 6:47
Michael Schubert14-Apr-09 6:47 
QuestionC# / C++ Interop, Odd behaviour from marshalled strings Pin
Mikey_H14-Apr-09 3:50
Mikey_H14-Apr-09 3:50 
AnswerRe: C# / C++ Interop, Odd behaviour from marshalled strings Pin
Chris Losinger14-Apr-09 4:35
professionalChris Losinger14-Apr-09 4:35 
GeneralRe: C# / C++ Interop, Odd behaviour from marshalled strings [modified] Pin
Mikey_H14-Apr-09 5:16
Mikey_H14-Apr-09 5:16 
GeneralRe: C# / C++ Interop, Odd behaviour from marshalled strings [modified] Pin
Chris Losinger14-Apr-09 5:29
professionalChris Losinger14-Apr-09 5:29 
GeneralRe: C# / C++ Interop, Odd behaviour from marshalled strings Pin
Iain Clarke, Warrior Programmer14-Apr-09 5:33
Iain Clarke, Warrior Programmer14-Apr-09 5:33 
GeneralRe: C# / C++ Interop, Odd behaviour from marshalled strings Pin
Chris Losinger14-Apr-09 5:40
professionalChris Losinger14-Apr-09 5:40 
GeneralRe: C# / C++ Interop, Odd behaviour from marshalled strings Pin
Iain Clarke, Warrior Programmer14-Apr-09 5:30
Iain Clarke, Warrior Programmer14-Apr-09 5:30 
GeneralRe: C# / C++ Interop, Odd behaviour from marshalled strings Pin
Mikey_H14-Apr-09 6:34
Mikey_H14-Apr-09 6:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.