J
Jerry Nettleton
I'm getting the following error:
c:\projects\WordAddIn\CiteLinkAddin.h(7) : error C4772: #import referenced a
type from a missing type library; '__missing_type__' used as a placeholder
c:\projects\WordAddIn\Debug\vbe6ext.tli(248) : error C2440: 'return' :
cannot convert from '__missing_type__ *' to '__missing_type__'
This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
Base on the following import statements:
#import "C:\Program Files\Common Files\Microsoft Shared\office11\mso.dll"
rename("RGB","_RGB") rename("DocumentProperties","_DocumentProperties")
named_guids
#import "C:\Program Files\Common Files\Microsoft
Shared\VBA\VBA6\VBE6EXT.OLB" // named_guids
#import "progid:Word.Document" rename("ExitWindows", "_ExitWindows")
rename("FindText","_FindText") // named_guids
How can I fix this problem? The compiler generated this code (in
vbe6ext.tlh file):
VBE : Application
{
//
// Property data
//
__declspec(property(get=GetActiveVBProject,put=PutRefActiveVBProject))
_VBProjectPtr ActiveVBProject;
__declspec(property(get=GetSelectedVBComponent))
_VBComponentPtr SelectedVBComponent;
__declspec(property(get=GetVBProjects))
_VBProjectsPtr VBProjects;
__declspec(property(get=GetCommandBars))
__missing_type__ CommandBars;
...
}
inline __missing_type__ VBE::GetCommandBars ( ) {
__missing_type__ * _result;
HRESULT _hr = get_CommandBars(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
Thanks,
Jerry N
c:\projects\WordAddIn\CiteLinkAddin.h(7) : error C4772: #import referenced a
type from a missing type library; '__missing_type__' used as a placeholder
c:\projects\WordAddIn\Debug\vbe6ext.tli(248) : error C2440: 'return' :
cannot convert from '__missing_type__ *' to '__missing_type__'
This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
Base on the following import statements:
#import "C:\Program Files\Common Files\Microsoft Shared\office11\mso.dll"
rename("RGB","_RGB") rename("DocumentProperties","_DocumentProperties")
named_guids
#import "C:\Program Files\Common Files\Microsoft
Shared\VBA\VBA6\VBE6EXT.OLB" // named_guids
#import "progid:Word.Document" rename("ExitWindows", "_ExitWindows")
rename("FindText","_FindText") // named_guids
How can I fix this problem? The compiler generated this code (in
vbe6ext.tlh file):
VBE : Application
{
//
// Property data
//
__declspec(property(get=GetActiveVBProject,put=PutRefActiveVBProject))
_VBProjectPtr ActiveVBProject;
__declspec(property(get=GetSelectedVBComponent))
_VBComponentPtr SelectedVBComponent;
__declspec(property(get=GetVBProjects))
_VBProjectsPtr VBProjects;
__declspec(property(get=GetCommandBars))
__missing_type__ CommandBars;
...
}
inline __missing_type__ VBE::GetCommandBars ( ) {
__missing_type__ * _result;
HRESULT _hr = get_CommandBars(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
Thanks,
Jerry N