Lotus Notes Consulting, Lotus Domino Consulting - Los Angeles, Orange County, Southern California and Beyond

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) notesapi\lib\mswin32\notes.lib

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

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

Leave a Reply

  

  

  


*

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>