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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:38:54+00:00 2026-05-15T11:38:54+00:00

I just read through a 2002 article on MSDN called Calling a .NET Component

  • 0

I just read through a 2002 article on MSDN called Calling a .NET Component from a COM Component to get a basic understanding of calling .NET objects from VB6 code. However, I still wondering what else I might be concerned about when referencing .NET objects from VB6 and if there’s anything newer information than what was available when that article was written 8 years ago.

In our specific implementation, we need to add a component to both a VB6 and a classic ASP (VB Script) application that will apply discount rules to items in a shopping cart. I was planning on writing the solution in .NET and then calling the component from our VB6 app.

However, we’re concerned that we might have performance bottlenecks related to translating the ADO recordset to simpler types, instantiating the .NET component to do the work, then translating back to the ADO recordset once we’re done. I’m hoping that performance and code maintenance gains by using .NET will outweigh any costs of translating to and from ADO recordsets, but I’m not sure of that; nor am I aware of other concerns that might make a .NET assembly slower than simply using a COM assembly. Any suggestions and insight would be much appreciated.

  • 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-15T11:38:54+00:00Added an answer on May 15, 2026 at 11:38 am

    The main problems I’ve had in this area are around maintenance; making a COM-callable dll isn’t hard, but making it stay callable when you update it (i.e. re-deploying the changes) can be a real pain. Or maybe I just got used to robocopy deployment, which isn’t going to be enough in this case – and it didn’t help that I had COM+ to contend with as well.

    Re the data… you really want to keep the API basic. I would be happy throwing strings over the boundary (xml perhaps, but not the only choice), but I would avoid recordsets etc. That is just asking for pain. Of course, you might not have a choice.

    Last time I had to do this, I actually got fed up trying to fight the different layers, and I ended up using http for the interface instead; both VB6 and C# are more than capable of throwing http messages around, or under-pinning a basic http server (either ASP or ASP.NET). Maybe a bit more overhead, but the separation was worth it. And it means I can swap either client or server at any time.

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

Sidebar

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.