View Full Version : I need Outlook Express OLE documentation
GnuVince
11-29-2002, 10:38 AM
I'm searching on MSDN, but I can't find anything. I need to import a .IAF file (account file) non-interactively. Since there doesn't seem to be any command line parameter for OE to do this, I am probably going to write a small script that will do just that. But the problem is that I do not know what calls I should make. Any help or links to documentation or sample code would be much appreciated.
Thanks guys
bwkaz
12-01-2002, 08:43 PM
Well... this isn't really documentation, but what I do when I need to do crap like that (esp. with Word or Excel) is create a temp. VB project, add a reference to the Word or Excel (or, in your case, Outlook) .ola/.olb/whatever file (the class lib interface), and take a look around in object browser. Especially in the Application class, but others as well (Documents and Document are good ones for Word/Excel, BTW ;) ).
GnuVince
12-01-2002, 11:08 PM
I'm no VB expert, so if you could guide me a little on how to do those operations, I would appreciate. Thanks :)
bwkaz
12-02-2002, 08:03 AM
Hmm... how detailed do you want... Well, let's try this then. ;)
Open up VB, and just create a new EXE project thingy. Add a code module to it (over on the right, where the project files are, you can right-click and Add, then hit Module). Doesn't matter what you call it. Double click the module to open it up.
Then go to the Project menu, and hit References. Scroll through the list to see if there's anything about outlook, and if not, hit browse and look around in Outlook's folders for a .olb, .ola, .ocx, or appropriate-sounding .dll. c:\program files\outlook express\msoe.dll sounds like it could be a winner, but I don't know for sure. Try it and see.
Then, close out of your dialogs, make sure the module window is still there, and hit F2 to bring up object explorer. There will almost assuredly be a package (not sure what they're called in COM, but package is what Java calls that type of thing -- of course, you won't see it if msoe.dll isn't the right file) there called something like outlook. See what's in it, then look around at some of those classes.
This is the VB6 interface, with OE from XP, so MS might have changed some things on you if you're using VB.net.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.