none
Automation of Microsoft Project? RRS feed

  • Question

  • Hi, are there any sample codes that demonstrate using C/C++ or MFC to automate the Microsoft Project?

    Thanks

    Friday, May 17, 2013 6:18 PM

Answers

  • Yes, see msdn.microsoft.com Most samples on MSDN and the web will be in VBA, VB.Net or C#.

    However your best way to code is to develop what you want in Project's macro language VBA first. Get it working, then convert the code to C. C# is much easier then C++ and C# 2010 is easier again as you get optional parameters and named parameters, both of which deliver much easier to read and maintain code.

    Quickest development is VBA to VB.Net, next is VBA to C# 2010 then all other languages. It would be worth developing a separate dll so you can take advantage of the much quicker development time.


    Rod Gill

    The one and only Project VBA Book

    Rod Gill Project Management

    Monday, May 20, 2013 8:46 PM
    Moderator

All replies

  • Hi Chcw,

    Thank you for posting in the MSDN Forum.

    I'll move your thread to Project Customization and Programming forum for better support.

    Sorry for any inconvenience and thank you for your understanding.

    Best regards,


    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, May 20, 2013 9:35 AM
  • Yes, see msdn.microsoft.com Most samples on MSDN and the web will be in VBA, VB.Net or C#.

    However your best way to code is to develop what you want in Project's macro language VBA first. Get it working, then convert the code to C. C# is much easier then C++ and C# 2010 is easier again as you get optional parameters and named parameters, both of which deliver much easier to read and maintain code.

    Quickest development is VBA to VB.Net, next is VBA to C# 2010 then all other languages. It would be worth developing a separate dll so you can take advantage of the much quicker development time.


    Rod Gill

    The one and only Project VBA Book

    Rod Gill Project Management

    Monday, May 20, 2013 8:46 PM
    Moderator