How to configure Notes C API with C++/CLI on Visual Studio

I wrote this article since there are little information about how to use Notes C API on C++/CLI with CLR.

Below is the settings to configure the DLL project with using Notes C API on C++/CLI. I am using Visual Studio 2005 Standard Edition.

  1. After creating New Project, Go to [Project] – [Properties]
  2. Go to [Configuration Properties] – [General] from left Navigation.
    Configure Dynamic Library(.dll) and Common Language Runtime Support (/clr)

    Configuration Properties - General

    Configuration Properties - General

  3. Go to [C/C++] – [General]
    Add Notes C API include folder into [Additional Include Directories]

    C/C++ - General

    C/C++ - General

  4. Go to [C/C++] – [Peprocessor]
    Add W32;WIN32 into [Preprocessor Definitions]

    C/C++ - Preprocessor

    C/C++ - Preprocessor

  5. Go to [C/C++] – [Code Generation]
    Configure Multi-threaded DLL (/MD) into [Runtime Library]

    C/C++ - Code Generation

    C/C++ - Code Generation

  6. Go to [Linker] – [General]
    Add C Notes API Library into [Additional Include Directories]

    Linker - General

    Linker - General

  7. Go to [Linker] – [Input]
    Add notes.lib into [Additional Dependencies]

    Linker - Input

    Linker - Input

    Point the relative path if you need (i.e) notesapilibmswin32notes.lib

That’s all!
Enjoy C++/CLI programming with Notes C API!

Tagged with: , ,
2 comments on “How to configure Notes C API with C++/CLI on Visual Studio
  1. Jason says:

    Have you ever configured MSVC++ express 2010 to work? I’m new to C/C++.

  2. ktatsuki says:

    Hi Jason
    Unfortunately I haven’t configured MSVC++ express 2010 yet. I’ve configured MSVC++ 2005 Express, 2008Professional, and remember it was pretty similar with 2005.

Leave a Reply

Your email address will not be published. Required fields are marked *

*




Enter Captcha Here :