3

I have to create a real-time display. On this display I have to get the numbers from an existing business logic component (written in C) and display these Live on a classic ASP-page (legacy app).

How can I best structure this solution to reuse the existing c code without refactoring the legacy asp classic website?

  • 1
    I have edited to make it more about software engineering rather than a direct tech question. But I think the close votes are a bit overkill. Mixing various existing components to create a solution is a high level architecture question. even if a specific coding technique might be used to resolve it – Ewan Mar 6 '17 at 12:37
  • Ok, but I still don't really get it what to do next. – MiMeng Mar 6 '17 at 16:06
4

I used to develop asp classic by putting the business logic in com+ components which can then be referenced and used by light weight vb script in the asp page.

I used vb6, but I believe you can make com+ dll in any language

https://www.codeproject.com/Articles/13601/COM-in-plain-C

Overall I would recommend this approach in any classic asp project, as it allows you to separate the business logic from the view and program in a modern way.

Com+ is legacy technology now, but then so is classic asp. Here are some guides

http://www.chestysoft.com/component-services.asp

https://msdn.microsoft.com/en-us/library/ms524620(v=vs.90).aspx

  • Hello Ewan, thanks for the information. Is com+ a tool, that I have to download it? – MiMeng Mar 6 '17 at 10:42
  • com+ is a way if packaging dlls so they can be exposed to other windows processes. you register your com+ component and then you can instanciate it in your asp page and call the functionality in vb script – Ewan Mar 6 '17 at 10:45
  • ok, I will read the information which you gave me. For Me these are very new, I hope I will understand these :) Thank you! – MiMeng Mar 6 '17 at 11:30
  • remember to upvote and select answer!! – Ewan Mar 6 '17 at 12:17
  • how can I upvote? I clicked usefil button, but nothing hanppens – MiMeng Mar 6 '17 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.