Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using COM objects

Status
Not open for further replies.

IonelBurtan

Programmer
May 25, 2001
601
RO
I have a few COM+ components made in classic ATL with DB calls already set up for an ASP application with VBS scripts. Now we want to exchange the App interface to ASP.NET

1. How can I use existing COM+ components in a .NET environment? More exactly, in code behind of a aspx(ascx) file. Some steps and pseudo-code would suffice.
2. How can I manage the transformation between COM data types and .NET data types. Is this done automatically. are there any known problems. (for example ADO recordsets->datasets, BSTR to String)

Thanks in advance,
Bye




s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
1. Right click on References, and choose Add References. You will see the COM objects tab. If it isn't in that list, browse to the COM object and add it.

2. I am not 100% sure about the transformation, but I assume it will be no problem. I think you have to use a wrapper. Google ASP.net COM Objects and I am sure there are tons of articles. In fact, I just did and came up with this.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top