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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:23:16+00:00 2026-05-12T18:23:16+00:00

I have a server which takes some messages x and outputs some messages Y.

  • 0

I have a server which takes some messages x and outputs some messages Y. Currently the x to y mapping is fixed. So x1 will always generate y1 with corresponding fields.

But now I want to be able to make it configurable such that the users can put their own dll which will generate x1 to y2, y3, or however they want. In case if they don’t handle it then it should take a default mapping which is x1 to y1.

One more thing is most of my output messages y1, y2 , y3 are already existing objects which are all derived from a base class.
And I want to be able to do the same thing the other way around…meaning y2(incoming message) to be converted to x1 depending on the user dll.
Can we accomplish this using DLLs? or is there a better way of doing this??
Is there a design pattern(factory pattern or something) to do this correctly so that it is flexible in future also.
Thanks!!!

  • 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-12T18:23:17+00:00Added an answer on May 12, 2026 at 6:23 pm

    This is not too hard, but you will need to provide an interface header (.h file) to DLL writers. You’ll also need to tell them which compiler to use, or use a COM-compatible interface.

    A quick sketch would be an interface that provides

    • A queryTypesSupported function, provided by the DLL and called by the EXE to determine the types supported
    • A std::auto_ptr<Ybase> processMessage(Xbase&) function, implemented by the DLL for the actual processing.
    • A virtual std::string Ybase::serialize() const function to turn the message into text.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to update different server data which takes huge time. I have to
I have created a java server, which takes screenshots, resizes them, and sends them
I have make Some Differential Backup for a Database, which will take the Backup
we have a 2008 SQL Server machine, for some reason which we still havent
I have a server which already host ASP.Net website. I am migrating from blogger
I have a server which executes Python scripts from a certain directory path. Incidently
Hi I have a server which has several virtual hosts set up on it.
i have a c++ server which is using boost::asio to do read/write operations -
I have a web server which I do not know what the time zone
I have a web server which is protected behind http-basic-auth. I've read through the

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.