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 / Languages / Managed C++ / February 2007

Tip: Looking for answers? Try searching our database.

C++/CLI asp.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hawk - 13 Feb 2007 00:38 GMT
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
Ben Voigt - 13 Feb 2007 01:15 GMT
> Hello,
> I have been working on a web application that needs to interact with a
[quoted text clipped - 7 lines]
> 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.

> Thanks,
>
> Hawk
Hawk - 13 Feb 2007 18:53 GMT
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

> > Hello,
> > I have been working on a web application that needs to interact with a
[quoted text clipped - 17 lines]
> >
> > Hawk
Ben Voigt - 13 Feb 2007 19:48 GMT
> 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).

> Hawk

Rate this thread:







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.