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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:35:30+00:00 2026-06-05T16:35:30+00:00

Hi I would like to know how to create a dll that is written

  • 0

Hi I would like to know how to create a dll that is written in say, c# that gets data from the columns of MYSQL database that is hosted online, so i am bit a confused as the data in MYSQL gets updated very often how to ensure that dll is pulling the information?

I am very new to creating dll never have it done before.

Tks

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

    Once you have got your windows class libarary set up. You need to decide what data the dll needs to give your calling application/s. You then need to expose these methods in the dll so that you can call them when needed. You should use Interfaces for these methods

    namespace ProductExampleInterfaces
    {
    
        public interface IProductData
        {
            IList<Product> GetAllProducts();
            string GetProductName(int id);
            ...
        }
        ...
    }
    

    The above interface would be used in your calling application as following

    using MySqlExmpleDll;
    ...
    
    class ProductService
    {
        private IProductData _productData;
    
        public ProductService(IProductData productData)
        {
            _productData = productData;
        }
    
        public IList<Product> GetAllProducts()
        {
            IList<Product> products;
            products = _productData.GetAllProducts();
            ...
            return products;
        }
    
    }
    

    Now, if GetAllProducts() is returning data then you know you are on track.

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

Sidebar

Related Questions

I would like to know how to create a php function that can be
I would like to know a way to create an XML file using MySQL
I would like to know how to create a rounded corners on a table
I would like to know if there is a way to take create a
I would like to know if there is a way to create web pages
I would like to create a multi-dimensional array with two variables but don't know
I would like to know if a type that i pass is a system
I need to create an ActiveX DLL (not a control). I know that VB6
I would like to create events for certain resources that are used across various
I would like to know how to create a default value. For example: CREATE

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.