Thread: Create outlook instance....

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    7

    Create outlook instance....

    I'm new with this and was hoping someone could
    direct me on a howto or even what to do.

    I would like to just simply create an instance of a new email via
    outlook.

    I would then read from a file and like to add text into the
    to: box.

    How do I go about doing this?
    I do not know of any Win32 API that can do this...
    Must I use COM? if so any tutorials on this?

    Thank You

  2. #2
    fou
    Guest
    This is one way:
    Code:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/_mapi1book_simple_mapi_programming_examples.asp
    Note: See the menu on the left. I did the best I could with the URL.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    You need COM at least.....Scripting via VBScript is the easiest way unfortunately

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    7
    Thanks for the replies.

    I just found it odd that I could not do this from Win32 API.

    I will look into COM.

    Any differences between COM, COM+ DCOM?

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    COM+ is an extension to com that is supposed to make it more friendly and more accessible to multi language use

    DCOM is more of an OS thing....you can create a COM object....register it to run on 1 PC, and then use it from other PCs as a kind of server....its pretty cool but also rather slow

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  2. How to create a file association program?
    By eShain in forum Windows Programming
    Replies: 1
    Last Post: 03-06-2006, 12:15 PM
  3. Cannot create MDI Client Win
    By JaWiB in forum Windows Programming
    Replies: 1
    Last Post: 10-31-2005, 10:05 PM
  4. error on second dialog Create
    By eXistenZ in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 04:15 AM
  5. CustomControlClass wont show first instance
    By btq in forum Windows Programming
    Replies: 1
    Last Post: 10-03-2002, 03:10 PM