I add library classes came in, add # include "CApplication. H", compilation, appeared a lot of error C2872: 'IDOCUMENT: ambiguous symbol, position in lppx2. TLH
CodePudding user response:
There are no other header files to include
CodePudding user response:
reference 1st floor oyljerry response: there are no other header files to include Should do not have the CodePudding user response:
The order of fine-tuning # include or header file directory? CodePudding user response:
The problem how to solve? The original poster CodePudding user response:
In stdafx. H header file add the following code, the path of the TLB her attention TLB path: [color=# FF0000] [color=# FF0000] # import "c: \ winnt \ system32 \ stdole2 TLB" rename_namespace (" New ") and exclude (" GUID ", "DISPPARAMS", "EXCEPINFO," \ "OLE_XPOS_PIXELS", "OLE_YPOS_PIXELS OLE_XSIZE_PIXELS", ""," OLE_YSIZE_PIXELS ", "OLE_XPOS_HIMETRIC \ "OLE_YPOS_HIMETRIC", "OLE_XSIZE_HIMETRIC OLE_YSIZE_HIMETRIC", ""," OLE_XPOS_CONTAINER \ "OLE_YPOS_CONTAINER", "OLE_XSIZE_CONTAINER OLE_YSIZE_CONTAINER", ""," OLE_HANDLE ", "OLE_OPTEXCLUSIVE \ "OLE_CANCELBOOL", "OLE_ENABLEDEFAULTBOOL FONTSIZE", ""," OLE_COLOR ") # import "debug \ lppx2 TLB rename_namespace" (" New ") Using the namespace New; Not clear change: Add the space name: New: : IDocument CodePudding user response:
Under codesoft disc sample, I also uploaded in pudn eight or nine years ago a sample all calls, can go to search the download