i would like to make addin in Excel But it has been error i did o

B

bike

i am going to add Button in Toolbar.

in addin.h
#import "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE"
rename_namespace("MSExcel"), rename("ExitWindows","ExcelExitWindows"),
raw_interfaces_only, named_guids
using namespace MSExcel;

in stdafx.h
#import "C:\Program Files\Common Files\Microsoft Shared\OFFICE11\mso.dll"
rename_namespace("Office"), named_guids
using namespace Office;
#import "C:\\Program Files\\Common Files\\Microsoft
Shared\\VBA\\VBA6\\VBE6EXT.olb" rename_namespace("VBE6"), named_guids
using namespace VBE6;

<------ and compile...

--------------------Configuration: ExcelTest - Win32 Unicode
Debug--------------------

Compiling...
Addin.cpp
e:\addin\exceltest\debugu\excel.tlh(7886) : warning C4003: not enough actual
parameters for macro 'DialogBoxW'
e:\addin\exceltest\debugu\excel.tlh(7886) : error C2059: syntax error : ','
e:\addin\exceltest\debugu\excel.tlh(26703) : warning C4003: not enough
actual parameters for macro 'RGB'
e:\addin\exceltest\debugu\excel.tlh(26703) : error C2059: syntax error : '('
e:\addin\exceltest\debugu\excel.tlh(26703) : error C2238: unexpected
token(s) preceding ';'

ExcelTest.cpp
e:\addin\exceltest\debugu\excel.tlh(7886) : warning C4003: not enough actual
parameters for macro 'DialogBoxW'
e:\addin\exceltest\debugu\excel.tlh(7886) : error C2059: syntax error : ','
e:\addin\exceltest\debugu\excel.tlh(26703) : warning C4003: not enough
actual parameters for macro 'RGB'
e:\addin\exceltest\debugu\excel.tlh(26703) : error C2059: syntax error : '('
e:\addin\exceltest\debugu\excel.tlh(26703) : error C2238: unexpected
token(s) preceding ';'
Generating Code...
Error executing cl.exe.

ExcelPrint.dll - 6 error(s), 4 warning(s)

<------ happen error

could you tell me what can i do ?
please.......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MSWORD9 to 11 1
how to insert ATL Dialog box???? 0

Top