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?

gnat
  • 20,543
  • 29
  • 115
  • 306
MiMeng
  • 67

1 Answers1

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

Ewan
  • 83,178