The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: s0rg on January 10, 2008, 07:25:55 PM

Title: msword+objasm32
Post by: s0rg on January 10, 2008, 07:25:55 PM
I'm fully noob in com/object programming, but i need this code to work, please help me.

[attachment deleted by admin]
Title: Re: msword+objasm32
Post by: Biterider on January 10, 2008, 09:20:26 PM
Hi sOrg
this is really an advanced topic. What you are missing is the interface definition files for MSWord. Until you just have them, I recommend to use Japheth's COMView to generate and manually adjust the synthax to use them for OA32.

It will be a long road, so check first if really want to use asm/COM for it.

Regards,

Biterider
Title: Re: msword+objasm32
Post by: s0rg on January 14, 2008, 06:15:45 PM
Thanks for your answer, i already have them (Word.inc + Wordc.inc + Office.inc includes). Can you show me the rigth way?
What i want: Start hidden MS Word (it works) +  Open .doc file (but it doesnt) + Whith power of Find.Exec interface change some stings in it+
Save this file under a diferrent name (doesnt work too) + Close MS Word (it works). Can anybody help me now? In Masm i trust :)

P.S. If someone have examples how to do this without objasm32, (using COMCALL or other way) please post them too :)
Title: Re: msword+objasm32
Post by: Biterider on January 15, 2008, 06:35:52 AM
Hi s0rg
Check your PM's. I'll try to help.

Regards,

Biterider
Title: Re: msword+objasm32
Post by: Draakie on January 15, 2008, 07:32:59 AM
I came across a COM implementation written by our very own JAPHETH. Ca'nt remember if he
posted it here..... but anyway here's the link. This one's for Excel, but the basics should be the
same for WORD, or so I imagine.

http://www.japheth.de/Download/ExcelHost.zip
Title: Re: msword+objasm32
Post by: s0rg on February 05, 2008, 09:20:53 PM
With great help of Biterider, i finally did it!

[attachment deleted by admin]