Article ID: 198017 - Last Review: June 1, 2005 - Revision: 4.0 BUG: You receive an "Unable to create the function" error message when you try to add a method as the variable type in the ATL Interface Wizard with Visual C++This article was previously published under Q198017 On This PageSYMPTOMSIn the ATL Interface Wizard with Visual C++ 6.0, you receive the following error message: "Unable to create the function
because the header or the implementation file could not be found." CAUSE This is due to a bug in the ATL Interface Wizard.
WORKAROUND Add these methods by manually editing the .idl, .h, and
.cpp files. The following shows the changes when adding two methods (called Test and Test2 that have SAFEARRAY(BSTR)* and SAFEARRAY(BSTR), respectively) to an interface called IATLObj. IATLObj is implemented by an ATL class called CATLObj.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONSteps to reproduce the behavior
REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
196837
(http://support.microsoft.com/kb/196837/
)
BUG: Compile errors result for certain ATL method parameters
| Article Translations
|
Back to the top
