Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7869581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:22:10+00:00 2026-06-03T01:22:10+00:00

Please guide me on how to create a C# wrapper to access the methods

  • 0

Please guide me on how to create a C# wrapper to access the methods of the tesseract library which is in C++.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:22:12+00:00Added an answer on June 3, 2026 at 1:22 am

    Here is a good article on CodeProject you can follow.

    When choosing an approach to reusing unmanaged libraries, you normally
    have three options:

    1. IJW or It Just Works. This is one of the greatest features that .NET
      Framework has provided to developers. You just recompile the old
      code on the new .NET platform. No or little changes are necessary.
      Don’t forget though; it works in the C++ language only.
    2. COM. The COM model works on both the unmanaged and managed
      environments. It’s straightforward to perform a COM Invoke on .NET.
      But, if your unmanaged classes are not COM-ready, you probably won’t
      rewrite all the old code to support COM.
    3. P/Invoke or Platform Invoke. This mechanism allows you to import a
      class as functions at the attribute level. Basically, you import
      class methods one by one as individual functions, as you do with
      Win32 APIs.

    For your case I will suggest the PlaPlatform Invocation Services (PInvoke). It allows managed code to call unmanaged functions that are implemented in a DLL. For example have a look on this MSDN code

    // PInvokeTest.cs
    using System;
    using System.Runtime.InteropServices;
    
    class PlatformInvokeTest
    {
        [DllImport("msvcrt.dll")]
        public static extern int puts(string c);
        [DllImport("msvcrt.dll")]
        internal static extern int _flushall();
    
        public static void Main() 
        {
            puts("Test");
            _flushall();
        }
    }
    

    There is also an older post related to this, you can check it here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

please guide if any body knows how to create a Enum class's object in
Can some one please guide me to understand which jar file i need to
Please guide me if I'm on right track. I'm trying to create database schema
Can some one please guide me how to create an Oscillation Animation on an
Please guide what is meaning by Web is stateless in simple words ? Kindly
Can you please guide me what is session and session variables? I don't need
I am facing some problems for using placement new for contiguous memory.Please guide me,
I want to set my Django/mysql site to work with UTF-8. Please guide me
Please recommend some websites with a quick guide. MSDN is good but it's hard
i am struggling with IPV6 programing please help me or guide to me to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.