#include <afxtemp1.h>
#include <afxcoll.h>
#include "stdafx.h"
#include "My3.h"
#include "My3Dlg.h"
#include "excel.h"
#include <afx.h>
#include <iostream.h>
#include <afxcoll.h>
#include <time.h>
#include <stdlib.h>#import "C:\Program Files\Common Files\Microsoft Shared\OFFICE12\MSO.DLL"
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
#import "C:\Program Files\Microsoft Office\OFFICE11\msword.olb" rename("FindText","_FindText"), rename("ExitWindows","_ExitWindows")
using namespace Excel;
'Excel' : does not exist or is not a namespace
帮忙看看应该怎么改动哦
#include <afxcoll.h>
#include "stdafx.h"
#include "My3.h"
#include "My3Dlg.h"
#include "excel.h"
#include <afx.h>
#include <iostream.h>
#include <afxcoll.h>
#include <time.h>
#include <stdlib.h>#import "C:\Program Files\Common Files\Microsoft Shared\OFFICE12\MSO.DLL"
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
#import "C:\Program Files\Microsoft Office\OFFICE11\msword.olb" rename("FindText","_FindText"), rename("ExitWindows","_ExitWindows")
using namespace Excel;
'Excel' : does not exist or is not a namespace
帮忙看看应该怎么改动哦
using namespace Excel;
'Excel' : does not exist or is not a namespace
是不是没有这样的命名空间?
帮你顶顶啦。
#import "C:\Program Files\Common Files\Microsoft Shared\OFFICE12\MSO.DLL"
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
#import "C:\Program Files\Microsoft Office\OFFICE11\msword.olb" rename("FindText","_FindText"), rename("ExitWindows","_ExitWindows")
using namespace Excel;
他们放置的位置错误吧 我没放到头文件中
只看到msword.olb,没看到excel相关的