C++/CLI asp.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have been working on a web application that needs to interact with a
program on the server machine. The programmer writing the code for the
server machine is a C++ guy and I was wondering if it is possible to write a
..dll in C++/CLI that can be placed in my web apps bin file so the methods can
be called from the .aspx pages using VB.net?

Basically the end user needs to be able to start, stop & pause services on
the server machine using the web.

Thanks,

Hawk
 
Hawk said:
Hello,
I have been working on a web application that needs to interact with a
program on the server machine. The programmer writing the code for the
server machine is a C++ guy and I was wondering if it is possible to write
a
.dll in C++/CLI that can be placed in my web apps bin file so the methods
can
be called from the .aspx pages using VB.net?

Basically the end user needs to be able to start, stop & pause services on
the server machine using the web.

As far as I know, ASP.NET can call into any managed library including
C++/CLI ones. You can't implement the ASP codebehinds with C++ though.

Be careful with thread safety though, ASP.NET has a really complicated
system of thread sharing, not one per request and definitely not sequential.
 
Thank you Ben for such a quick response. That was the answer I was looking
for. all I keep reading on the web was c++/CLI was not compatiable with
asp.net. This clears things up. I wil keep the thread safety issue in mind.

Hawk
 
Hawk said:
Thank you Ben for such a quick response. That was the answer I was
looking
for. all I keep reading on the web was c++/CLI was not compatiable with
asp.net. This clears things up. I wil keep the thread safety issue in
mind.

ASP.NET doesn't support C++/CLI code, that is it can't invoke the C++/CLI
compiler during aspx processing, however you're talking about an assembly
reference to a precompiled dll, which is at the metadata level and therefore
completely language agnostic. (Note that using C++/CLI almost always
requires full trust permissions).
 
Back
Top