In your example ExcelHost it is used
include office.inc
include excel.inc
include excelc.inc

Where them to take?
Posted on 2005-09-21 03:57:44 by Avalonec

read Excelhost.asm how to create them. You will need to download comview.
Posted on 2005-09-21 12:44:27 by japheth
I already download COMVIEW.
I have not understood as him it is possible to generate a file. For example, office.inc?
Posted on 2005-09-22 03:51:50 by Avalonec

office.inc for example is generated from type information contained in msoX.dll (x=9 for ms office 2000, I dont have a newer one)
Posted on 2005-09-22 06:05:55 by japheth
Thanks, for the help.
comview the powerful program.
At me the newest office, with it is not present problems :)
Posted on 2005-09-22 07:40:57 by Avalonec
At me one more question.
As works macro dm?
And what for it:
DEFINE_DISPMETHOD _Application , put_Visible, 22Eh, PROPERTYPUT, ,VT_BOOL
Posted on 2005-09-26 08:41:44 by Avalonec

regretably I don't understand your question. Pleasy try to explain in more details what you want to achieve!
Posted on 2005-09-27 03:12:14 by japheth
First, linked excelhost did not work. Excelhost "Carries out invalid operation".
Using masm32 v8.
Offece 2003

Second, the example written by me did not work.

Line:
        invoke vf(pWorkbooks, Workbooks, Add_), var1, 0, addr pWorkbook

I use:
        coinvoke pWorkbooks, Workbooks, Add_, ADDR var1, 0, addr pWorkbook
And equivalent, my macro
        com pWorkbooks, Workbooks::Add_, ADDR var1, 0, ADDR pWorkbook

Which does not create the book. :(

code

AddBook proc
local var1:VARIANT

com p_app, _Application::get_Workbooks, tdn(pWorkbooks)
.IF_SUCCEEDED
ok->
  mpectex "get_Workbooks"
  mov var1.vt, VT_ERROR
  mov var1.scode, DISP_E_PARAMNOTFOUND

  com pWorkbooks, Workbooks::Add_, ADDR var1, 0, tdn(pWorkbook)
;  coinvoke pWorkbooks, Workbooks, Add_, ADDR var1, 0, addr pWorkbook
;  invoke vf(pWorkbooks, Workbooks, Add_), var1, 0, addr pWorkbook

pWorkbook=12

  .IF_SUCCEEDED
Does not get->
  mpectex "Add_"
  .ENDIF

.ENDIF
ret
AddBook endp
Posted on 2005-09-29 02:58:49 by Avalonec

Avalonec

please try to imagine you are someone else and then read your post!

Do you really think anyone can help you with the information you have given?

Posted on 2005-09-29 03:09:22 by japheth
I think that ideas should be.
Posted on 2005-09-29 03:42:40 by Avalonec