error C2065: '_Application' : undeclared identifier
-
Hi all i am useing this link [http://support.microsoft.com/kb/q243394/](<a href=) for write data in excel.I have include these files
#include <afxdao.h>
//
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE12\\MSO.DLL"using namespace Office;
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.OLB"
using namespace VBIDE;
#import "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE" \
rename( "DialogBox", "ExcelDialogBox" ) \
rename( "RGB", "ExcelRGB" ) \
rename( "CopyFile", "ExcelCopyFile" ) \
rename( "ReplaceText", "ExcelReplaceText" )"stdafx.h". But i have a error
error C2065: '_Application' : undeclared identifier
.Plz help me -
Hi all i am useing this link [http://support.microsoft.com/kb/q243394/](<a href=) for write data in excel.I have include these files
#include <afxdao.h>
//
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE12\\MSO.DLL"using namespace Office;
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.OLB"
using namespace VBIDE;
#import "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE" \
rename( "DialogBox", "ExcelDialogBox" ) \
rename( "RGB", "ExcelRGB" ) \
rename( "CopyFile", "ExcelCopyFile" ) \
rename( "ReplaceText", "ExcelReplaceText" )"stdafx.h". But i have a error
error C2065: '_Application' : undeclared identifier
.Plz help me_Application
is in theExcel
namespace when you import it like that. Either explicitly qualify the use of Excel objects or add 'using namespace Excel;' after the last #import statement.Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
_Application
is in theExcel
namespace when you import it like that. Either explicitly qualify the use of Excel objects or add 'using namespace Excel;' after the last #import statement.Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Thanks for reply Mr. Stuart Dootson. See i am getting problem to write data in excel and read from mysql.I am searching here and there but i havn't found any good example or tips.If any one have example then plz givem.Plz help me
Davitor wrote:
See i am getting problem to write data in excel...I am searching here and there but i havn't found any good example or tips.If any one have example then plz givem.Plz help me
Does this help?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons