Home All Groups Group Topic Archive Search About

C++ 6.0 dll work with asp.net

Author
13 Jan 2006 2:21 PM
Andy Sutorius via DotNetMonster.com
I have asp.net 2.0 What steps do I need to take to get a c++ 6.0 dll to work
within the project? I assume regsvr32 and drop it in the bin folder? Those
are assumptions. Details please. Thanks!


Author
13 Jan 2006 9:21 PM
Winista
Assuming that you are talking about a COM DLL...

1. "Add reference" and then pick the COM object. this will add ncessary
Interop tlibimport stuff into your project.
2. This will create the namespace for your Interop shim in your project and
you should be able to use it now.

If there is some complex data structures being marhalled then you will have
to do some manual marshaling of the types.
And if your COM object is single threaded then you will need to add
AspCompat attribute to Page directive and set it to true because ASP.Net
process runs in multithreaded mode by default.

"Andy Sutorius via DotNetMonster.com" <u9025@uwe> wrote in message
news:5a4c6e0763120@uwe...
Show quoteHide quote
>I have asp.net 2.0 What steps do I need to take to get a c++ 6.0 dll to
>work
> within the project? I assume regsvr32 and drop it in the bin folder? Those
> are assumptions. Details please. Thanks!
>
> --
> Message posted via DotNetMonster.com
> http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net/200601/1
Are all your drivers up to date? click for free checkup

Author
15 Jan 2006 8:05 PM
Andy Sutorius via DotNetMonster.com
Thank you.

Andy Sutorius wrote:
Show quoteHide quote
>I have asp.net 2.0 What steps do I need to take to get a c++ 6.0 dll to work
>within the project? I assume regsvr32 and drop it in the bin folder? Those
>are assumptions. Details please. Thanks!


Bookmark and Share