locked
Enterprise Library in native c++? RRS feed

  • Question

  • Hi,

     

    Is there a way to use the Enterprise Library 3.1 from native c++ code?

    I want to use the Logging Application Block from c++ to send the log entries to the same msmq or database as from our c# applications.

    Is there a compatible native version?

    Or is it easy to export it to COM?

    Or do I have to create my own facade which will be COM-Visible and registered for interop?

    Friday, July 6, 2007 8:04 AM

Answers

  • The best way would be to create a wrapper library in C++/CLI and export functions for native applictions use, and then call them from your native C++ code. Here is one article describing the whole process,

     

    How to build an assembly that exposes Win32 APIs and native COM

    Friday, July 6, 2007 11:40 AM