If you don't mind writing some managed C++, you could wrap anything that
runs in the Win32 subsystem without much problem. I write a lot of
managed C++ wrappers for complicated Win32 functions especially if they
use structures. It is also easier to use the header file than to write
a function signature, p/invoke style, to match the exported function.
In the end, it produces a .Net class library that I can reference from
C# or VB.Net. You don't need to make the legacy code look like COM.
Bryan Phillips
MCSD, MCDBA, MCSE
Blog:
http://bphillips76.spaces.live.com
"A. Chiou" <AC****@discussions.microsoft.comwrote in message
news:38**********************************@microsof t.com:
Thanks for your reply, Bryan. What I'm trying to do is to make some
legacy apps I developed years ago available on the web. I did some
research and found that in VS 2003 only support wrapping COM
compliant apps. Is there any way to wrap those legacy apps and
make them look like COM?
Thanks again.
"Bryan Phillips" wrote:
While it is possible to do so, it will be difficult at best to keep such
an application running in the long term. There are better ways of
reusing the DOS applications business logic especially if it supports
standard calls (like Win32 libraries do). What specifically are you
trying to achieve?
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
"A. Chiou" <AC****@discussions.microsoft.comwrote in message
news:A8**********************************@microsof t.com:
Hi all:
Is there a way in VS .Net 2003 to wrap an existing application, say a DOS
app., as a web service and publish it? I'd appreciate any response.