Group:  Microsoft Word ยป microsoft.public.word.vba.beginners
Thread: microsoft.public.word.vba.beginners

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

microsoft.public.word.vba.beginners
"Goran" <goran[ at ]bokverket.com> 04.03.2006 17:13:57
I wrote:
I am experimenting with an app which is to process large Word doc's, and
needs the dictionary objects available in Python (and C++).Jezebiel wrote:

Jezebiel answered.
Don't know anything about Python. You can register a DLL (or any compliant
library file) in VBA through Tools > References. The functions within the
DLL can then be called from within VBA. They don't appear directly as
macros. You need to write wrapper functions (ie a macro that calls the DLL
function).

Thanks much. I wonder if both the following skeleton code ideas are
possible, and if there is a large overhead for each access to Word in the
first one.

'*** First idea
VBA Wrapper:
StartDLL(pointertocurrentWordDocument)

Inside DLL:
Word.getNextWord(pointertocurrentWordDocument) until endofdoc
// Do whatever processing is needed


'*** Second idea
VBA Wrapper:
StartDLL(currentWordDocument) ' i.e. throw over the whole document right
away

Inside DLL:
currentWordDocument.processWord until endofdoc

Best,

Goran


Re: microsoft.public.word.vba.beginners
Word Heretic <myfullname[ at ]iinet.net.au> 07.03.2006 15:38:19
G'day "Goran" <goran[ at ]bokverket.com>,

From what I have been told, no there isn't. I have seen several tools
work in both manners, without appreciable lag.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Goran reckoned:

[Quoted Text]
>I wrote:
>I am experimenting with an app which is to process large Word doc's, and
>needs the dictionary objects available in Python (and C++).Jezebiel wrote:
>
>Jezebiel answered.
>Don't know anything about Python. You can register a DLL (or any compliant
>library file) in VBA through Tools > References. The functions within the
>DLL can then be called from within VBA. They don't appear directly as
>macros. You need to write wrapper functions (ie a macro that calls the DLL
>function).
>
>Thanks much. I wonder if both the following skeleton code ideas are
>possible, and if there is a large overhead for each access to Word in the
>first one.
>
>'*** First idea
>VBA Wrapper:
>StartDLL(pointertocurrentWordDocument)
>
>Inside DLL:
>Word.getNextWord(pointertocurrentWordDocument) until endofdoc
>// Do whatever processing is needed
>
>
>'*** Second idea
>VBA Wrapper:
>StartDLL(currentWordDocument) ' i.e. throw over the whole document right
>away
>
>Inside DLL:
>currentWordDocument.processWord until endofdoc
>
>Best,
>
>Goran
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net