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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:16:35+00:00 2026-05-11T16:16:35+00:00

In my VB6.0 days I used tons of windows API. So I got the

  • 0

In my VB6.0 days I used tons of windows API. So I got the idea that all the API methods that I declared are pretty much procedure based – or it has a procedure based entry point.

My question:

I have written some code in C# which I need to access from VB6.0. Is it possible to compile my C# code into a DLL and access that C# DLL from VB6.0 declaring it as an API call? If so, how is this done ?

(I have already tried making my C# DLL COM compliant, and it worked – but I would like to try the above mentioned approach anyway)

  • 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-05-11T16:16:35+00:00Added an answer on May 11, 2026 at 4:16 pm

    No, you can’t expose the entry points to your C# DLL as Win32-style APIs. If you really, really need to create procedural entry points for a .NET library, probably the best thing to do is create a mixed-mode wrapper library using C++/CLI. But this seems like hard work: exposing your C# classes as COM objects is likely to be a lot less effort and much easier to maintain.

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

Sidebar

Related Questions

In VB6, I used a call to the Windows API, GetAsyncKeyState , to determine
First: sorry for my poor English writing. I remember that in VB6.0 days, we
I've always laughed to myself when I've looked back at my VB6 days and
In the old VB6 days it was possible to embed the runtime onto a
VB6 & SQL Server 2005 When i run the Windows based Software exe file,
Are VB6 IDE and VB6 applications supported in Windows Vista x32 ??
Ok. I have a VB6 compiled DLL that i have imported to a webservice(C#
Using VB6, I have created an Outlook plugin, that has a property page. The
VB6 had a DoEvents() method that you called to return control to the OS
Our VB6 application relies heavily on the use of scrrun.dll (Windows Scripting Host). Until

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.