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 7732419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:43:33+00:00 2026-06-01T06:43:33+00:00

that approach in possible duplicate is different to the one in the book. The

  • 0

that approach in “possible duplicate” is different to the one in the book. The book’s approach is to extend a managed .dll after compilation through a decompile, recompile process. The approach that you think is an exact duplicate is actually a pre compilation technique. I prefer method in the book because it is more AOP in style. Thanks for the link though. I will also explore this avenue

In Expert .NET 2.0 IL Assembler, in Ch 18 pp. 387 Serge Lidin talks about Creative Round-Tripping. He says, “ILAsm allows you to export the managed methods as unmanaged
entry points”.

I haven’t heard this talked about anywhere else. Is this something that you can do in PostSharp? Are there any downloadable code / script examples of using this technique available?

To clarify, I don’t want to use COM or Managed C++. So what’s the best way to implement a call to a C# method from C/C++ through thunking?

  • 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-01T06:43:35+00:00Added an answer on June 1, 2026 at 6:43 am

    ildasm, change corflags, add v-table info and export function, ilasm and you’re done.

    Here’s a code project article:
    http://www.codeproject.com/Articles/37675/Simple-Method-of-DLL-Export-without-C-CLI

    Which is based on:

    Dead link:
    http://www.csharphelp.com/2007/03/exporting-managed-code-as-unmanaged/

    Wayback Machine for dead link:
    https://web.archive.org/web/20140213030149/http://www.csharphelp.com/2007/03/exporting-managed-code-as-unmanaged/

    Which is based on:
    http://www.amazon.com/Inside-Microsoft-NET-IL-Assembler/dp/0735615470 (the first edition of the book you refer to)

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

Sidebar

Related Questions

Possible Duplicate: Incorporating license key approach for a WinForms app I would like to
Possible Duplicate: Static extension methods So I know that Extension methods are for object
Possible Duplicate: Self-contained database? I wish to create a C# application that embeds a
Possible Duplicate: Dependency Hell — how does one pass dependencies to deeply nested objects?
Possible Duplicate: Show progress for PHP long script I have a PHP script that
Possible Duplicate: What is the best approach to handling exceptions thrown in a separate
Possible Duplicate: What is a good approach to building a debugger for a .NET
Possible Duplicate: Any one know of an OpenGL ES example of an interactive globe/earth
I was reading today about OOCSS which says by using that approach have 2
The very act of asking this question suggests that my approach to this problem

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.