Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / December 2005

Tip: Looking for answers? Try searching our database.

Conversion of VC++ ATL COM to .Net web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Prashant - 29 Dec 2005 10:52 GMT
We have an ATL COM server developed with VC++ 6.0 which acts a a server .
Then we have VB6 modules

Acting as clients and interfacing with the server .



We want to migrate the ATL COM server to .Net platform and host it as a web
service . The client modules

are can then be redeveloped in .Net if needed .



The existing COM server has around 5000 lines of code .





Please let us know if there is any direct conversion utility that converts
the ATL COM to .Net web service .

Can a layer be developed that can act as an interface to host the COM
application as a web service .



The intention is to avoid a line to line code conversion .



Please let us know the options .





Signature

Prashant Shukla

Richard Grimes - 31 Dec 2005 18:08 GMT
> The existing COM server has around 5000 lines of code .
>
> Please let us know if there is any direct conversion utility that
> converts the ATL COM to .Net web service .

Not really. ATL Server handles web services in a totally different way
to how .NET implement them. (For a start ATL attributes are
compile-time, whereas .NET attributes are run-time.) If the ATL Server
web service is well factored (ie you have an object that have web
service methods, and you do not do anything with the underlying ATL
Server plumbing, like caching) then you are a step closer. However,
converting unmanaged C++ to .NET is fraught with issues. The best thing
you can do is factor out the web methods into a C++ DLL and compile it
as unmanaged C++, and use platform invoke or managed C++ to access the
code. In the long term you should re-write the code for .NET.

> Can a layer be developed that can act as an interface to host the COM
> application as a web service .

Umm, yes, you can run the ATL Server web service as a web service and
write a .NET web service to access it via, umm, web services. Seriously,
this is a good solution because the original code is run in the
environment where it was designed and tested to run, and you will not
get the problems of ported code.

> The intention is to avoid a line to line code conversion .

That would be a mistake in all cases, because there is no one-to-one
relationship between ATL Server and .NET

Richard
Signature

Fusion Tutorial: http://www.grimes.demon.co.uk/workshops/fusionWS.htm
Security Tutorial:
http://www.grimes.demon.co.uk/workshops/securityWS.htm


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.