Newbie Q regarding MFC automation client app  
Author Message
Aaron L





PostPosted: Visual C++ General, Newbie Q regarding MFC automation client app Top

First, I am trying to learn how to build an MFC DLL automation client for use by my SDK program.

I begin by trying to build a simple sample MFC client app as demonstrated in the KB article: 307473 "How to use type library for Office Automation from VC++ .NET" and I get to "Step 6" when my compile produces the following slew of errors. This happens when I add the line "#include "CApplication.h" to the top of my "AutoProjectDlg.cpp" file. Can anyone please help me figure out what has gone wrong

------ Rebuild All started: Project: AutoProject, Configuration: Debug Win32 ------

Deleting intermediate and output files for project 'AutoProject', configuration 'Debug|Win32'

Compiling...

stdafx.cpp

Compiling...

AutoProject.cpp

AutoProjectDlg.cpp

f:\my software projects\visual studio 2005\projects\autoproject\capplication.h(3) : warning C4278: 'RGB': identifier in type library 'C:\\Program Files\\Microsoft Office\\Office10\\msppt.olb' is already a macro; use the 'rename' qualifier

f:\my software projects\visual studio 2005\projects\autoproject\capplication.h(3) : warning C4278: 'RGB': identifier in type library 'C:\\Program Files\\Microsoft Office\\Office10\\msppt.olb' is already a macro; use the 'rename' qualifier

f:\my software projects\visual studio 2005\projects\autoproject\capplication.h(3) : warning C4278: 'RGB': identifier in type library 'C:\\Program Files\\Microsoft Office\\Office10\\msppt.olb' is already a macro; use the 'rename' qualifier

f:\my software projects\visual studio 2005\projects\autoproject\capplication.h(3) : warning C4278: 'RGB': identifier in type library 'C:\\Program Files\\Microsoft Office\\Office10\\msppt.olb' is already a macro; use the 'rename' qualifier

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(414) : error C2371: 'FontPtr' : redefinition; different basic types

c:\program files\microsoft visual studio 8\vc\include\comdef.h(312) : see declaration of 'FontPtr'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1129) : error C2146: syntax error : missing ';' before identifier 'GetRGB'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1129) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1129) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1129) : warning C4183: 'GetRGB': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1131) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1151) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1153) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1913) : error C2146: syntax error : missing ';' before identifier 'Item'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1913) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1914) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1914) : warning C4183: 'Item': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1916) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1928) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1930) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1960) : error C2146: syntax error : missing ';' before identifier 'GetRGB'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1960) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1960) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1960) : warning C4183: 'GetRGB': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1962) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1973) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(1975) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(2379) : error C2146: syntax error : missing ';' before identifier 'GetTransparencyColor'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(2379) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(2379) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(2379) : warning C4183: 'GetTransparencyColor': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(2381) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(2429) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(2431) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(4066) : error C2011: 'Font' : 'struct' type redefinition

c:\program files\microsoft visual studio 8\vc\include\comdef.h(310) : see declaration of 'Font'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(5537) : error C2146: syntax error : missing ';' before identifier 'Fonts'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(5537) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(5537) : error C2208: 'Fonts' : no members defined using this type

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(5584) : error C2146: syntax error : missing ';' before identifier 'GetFonts'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(5584) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(5584) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(5584) : warning C4183: 'GetFonts': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7872) : error C2146: syntax error : missing ';' before identifier 'CommandBars'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7872) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7872) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7878) : error C2146: syntax error : missing ';' before identifier 'Assistant'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7878) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7878) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7880) : error C2146: syntax error : missing ';' before identifier 'FileSearch'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7880) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7880) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7882) : error C2146: syntax error : missing ';' before identifier 'FileFind'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7882) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7882) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7896) : error C2146: syntax error : missing ';' before identifier 'VBE'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7896) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7896) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7912) : error C2146: syntax error : missing ';' before identifier 'AnswerWizard'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7912) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7912) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7914) : error C2146: syntax error : missing ';' before identifier 'COMAddIns'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7914) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7914) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7920) : error C2146: syntax error : missing ';' before identifier 'LanguageSettings'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7920) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7920) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7922) : error C2146: syntax error : missing ';' before identifier 'MsoDebugOptions'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7922) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7922) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7926) : error C2146: syntax error : missing ';' before identifier 'FileDialog'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7926) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7926) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7928) : error C2146: syntax error : missing ';' before identifier 'NewPresentation'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7928) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7928) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7942) : error C2146: syntax error : missing ';' before identifier 'GetCommandBars'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7942) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7942) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7942) : warning C4183: 'GetCommandBars': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7948) : error C2146: syntax error : missing ';' before identifier 'GetAssistant'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7948) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7948) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7948) : warning C4183: 'GetAssistant': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7949) : error C2146: syntax error : missing ';' before identifier 'GetFileSearch'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7949) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7949) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7949) : warning C4183: 'GetFileSearch': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7950) : error C2146: syntax error : missing ';' before identifier 'GetFileFind'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7950) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7950) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7950) : warning C4183: 'GetFileFind': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7957) : error C2146: syntax error : missing ';' before identifier 'GetVBE'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7957) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7957) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7957) : warning C4183: 'GetVBE': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7990) : error C2146: syntax error : missing ';' before identifier 'GetAnswerWizard'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7990) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7990) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7990) : warning C4183: 'GetAnswerWizard': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7991) : error C2146: syntax error : missing ';' before identifier 'GetCOMAddIns'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7991) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7991) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7991) : warning C4183: 'GetCOMAddIns': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7994) : error C2146: syntax error : missing ';' before identifier 'GetLanguageSettings'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7994) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7994) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7994) : warning C4183: 'GetLanguageSettings': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7995) : error C2146: syntax error : missing ';' before identifier 'GetMsoDebugOptions'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7995) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7995) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(7995) : warning C4183: 'GetMsoDebugOptions': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8010) : error C2146: syntax error : missing ';' before identifier 'GetFileDialog'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8010) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8011) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8011) : warning C4183: 'GetFileDialog': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8018) : error C2146: syntax error : missing ';' before identifier 'GetNewPresentation'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8018) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8018) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8018) : warning C4183: 'GetNewPresentation': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8193) : error C2146: syntax error : missing ';' before identifier 'Assistant'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8193) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8193) : error C2208: 'Assistant' : no members defined using this type

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8203) : error C2146: syntax error : missing ';' before identifier 'CommandBars'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8203) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8203) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8205) : error C2146: syntax error : missing ';' before identifier 'AnswerWizard'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8205) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8205) : error C2208: 'AnswerWizard' : no members defined using this type

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8215) : error C2146: syntax error : missing ';' before identifier 'GetAssistant'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8215) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8215) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8215) : warning C4183: 'GetAssistant': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8220) : error C2146: syntax error : missing ';' before identifier 'GetCommandBars'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8220) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8220) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8220) : warning C4183: 'GetCommandBars': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8221) : error C2146: syntax error : missing ';' before identifier 'GetAnswerWizard'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8221) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8221) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8221) : warning C4183: 'GetAnswerWizard': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8639) : error C2146: syntax error : missing ';' before identifier 'Scripts'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8639) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8639) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8722) : error C2146: syntax error : missing ';' before identifier 'GetScripts'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8722) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8722) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8722) : warning C4183: 'GetScripts': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8822) : error C2146: syntax error : missing ';' before identifier 'Scripts'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8822) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8822) : error C2208: 'Scripts' : no members defined using this type

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8915) : error C2146: syntax error : missing ';' before identifier 'GetScripts'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8915) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8915) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(8915) : warning C4183: 'GetScripts': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9047) : error C2146: syntax error : missing ';' before identifier 'Scripts'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9047) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9047) : error C2208: 'Scripts' : no members defined using this type

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9073) : error C2146: syntax error : missing ';' before identifier 'GetScripts'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9073) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9073) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9073) : warning C4183: 'GetScripts': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9743) : error C2146: syntax error : missing ';' before identifier 'Script'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9743) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9743) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9863) : error C2146: syntax error : missing ';' before identifier 'GetScript'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9863) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9863) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(9863) : warning C4183: 'GetScript': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10170) : error C2146: syntax error : missing ';' before identifier 'CommandBars'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10170) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10170) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10176) : error C2146: syntax error : missing ';' before identifier 'HTMLProject'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10176) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10176) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10184) : error C2146: syntax error : missing ';' before identifier 'Signatures'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10184) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10184) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10238) : error C2146: syntax error : missing ';' before identifier 'VBProject'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10238) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10238) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10288) : error C2146: syntax error : missing ';' before identifier 'GetVBProject'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10288) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10288) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10288) : warning C4183: 'GetVBProject': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10356) : error C2146: syntax error : missing ';' before identifier 'GetCommandBars'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10356) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10356) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10356) : warning C4183: 'GetCommandBars': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10359) : error C2146: syntax error : missing ';' before identifier 'GetHTMLProject'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10359) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10359) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10359) : warning C4183: 'GetHTMLProject': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10384) : error C2146: syntax error : missing ';' before identifier 'GetSignatures'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10384) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10384) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(10384) : warning C4183: 'GetSignatures': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(11508) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(11555) : error C2061: syntax error : identifier 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(11712) : error C2146: syntax error : missing ';' before identifier 'Script'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(11712) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(11712) : error C2208: 'Script' : no members defined using this type

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(11875) : error C2146: syntax error : missing ';' before identifier 'GetScript'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(11875) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(11875) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(11875) : warning C4183: 'GetScript': missing return type; assumed to be a member function returning 'int'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12667) : error C2143: syntax error : missing ';' before 'ColorFormat::GetRGB'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12667) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12667) : error C2497: 'MsoRGBType' : 'implementation_key' can only be applied to function declarations

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12667) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12668) : error C2146: syntax error : missing ')' before identifier 'RGB'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12668) : error C2182: 'PutRGB' : illegal use of type 'void'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12668) : error C2497: 'ColorFormat::PutRGB' : 'implementation_key' can only be applied to function declarations

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12668) : error C2350: 'ColorFormat::PutRGB' is not a static member

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12668) : error C2440: 'initializing' : cannot convert from 'int' to 'void (void)'

There are no conversions to function types, although there are conversions to references or pointers to functions

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12668) : error C2059: syntax error : ')'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12790) : error C2143: syntax error : missing ';' before 'ExtraColors::Item'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12790) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12790) : error C2497: 'MsoRGBType' : 'implementation_key' can only be applied to function declarations

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12790) : error C2086: 'int MsoRGBType' : redefinition

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12667) : see declaration of 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12790) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12791) : error C2146: syntax error : missing ')' before identifier 'Type'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12791) : error C2497: 'ExtraColors::Add' : 'implementation_key' can only be applied to function declarations

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12791) : error C2350: 'ExtraColors::Add' is not a static member

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12791) : error C2440: 'initializing' : cannot convert from 'int' to 'HRESULT (void)'

There are no conversions to function types, although there are conversions to references or pointers to functions

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12791) : error C2059: syntax error : ')'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12794) : error C2143: syntax error : missing ';' before 'RGBColor::GetRGB'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12794) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12794) : error C2497: 'MsoRGBType' : 'implementation_key' can only be applied to function declarations

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12794) : error C2086: 'int MsoRGBType' : redefinition

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12667) : see declaration of 'MsoRGBType'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12794) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12795) : error C2146: syntax error : missing ')' before identifier 'RGB'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12795) : error C2182: 'PutRGB' : illegal use of type 'void'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12795) : error C2497: 'RGBColor::PutRGB' : 'implementation_key' can only be applied to function declarations

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12795) : error C2350: 'RGBColor::PutRGB' is not a static member

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12795) : error C2440: 'initializing' : cannot convert from 'int' to 'void (void)'

There are no conversions to function types, although there are conversions to references or pointers to functions

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12795) : error C2059: syntax error : ')'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12862) : error C2143: syntax error : missing ';' before 'PictureFormat::GetTransparencyColor'

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12862) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12862) : error C2497: 'MsoRGBType' : 'implementation_key' can only be applied to function declarations

f:\my software projects\visual studio 2005\projects\autoproject\debug\msppt.tlh(12862) : fatal error C1003: error count exceeds 100; stopping compilation

Generating Code...

Build log was saved at "file://f:\My Software Projects\Visual Studio 2005\Projects\AutoProject\Debug\BuildLog.htm"

AutoProject - 207 error(s), 32 warning(s)

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========



Visual C++13  
 
 
Aaron L





PostPosted: Visual C++ General, Newbie Q regarding MFC automation client app Top

Okay, so this has something to do with the #import statement in the "CApplication.h" file and name collisions, right Here it is before changes:

// Machine generated IDispatch wrapper class(es) created with Add Class from Typelib Wizard

#import "C:\\Program Files\\Microsoft Office\\Office10\\msppt.olb" no_namespace

// CApplication wrapper class

The doc says that I should use the "rename" attribute to fix this, but I am not sure how to use this effectively. Further, I would really like an easier fix bc this would imply the same sort of change for every other automation class that I will eventually like to add from the typelib. Anyone have any ideas on how to do this "the easy way"


 
 
Aaron L





PostPosted: Visual C++ General, Newbie Q regarding MFC automation client app Top

It seems like simply commenting out the #import line above (which was auto generated by VS2005) fixes my problem!

I figured this out by using my old VS6.0 to regenerate the same project and add the same typelib class. It did basically the same thing (each class does not get its own header file) but it did not include the #import statement.

I am going to forge ahead and see if this really works, but I would still like to know what others think Why does VS2005 include this line and is it really necessary


 
 
Simple Samples





PostPosted: Visual C++ General, Newbie Q regarding MFC automation client app Top

This seems to be a peculiarity of the Office Automation and therefore you are likely to get better help in the relevant newsgroup. I agree that it seems to be a VC issue, but regardless of whether it is, you are more likely to get in another newsgroup or forum. I think that The scope of this forum will help you find a newsgroup.