How to load the DLL in visual studio.net

G

Guest

Hi, all,

I have a DLL file (which wrote from Visual C++) and it could send signalling
message to the other server. I would like to write a ASP.net web page, and
have button to call the function in DLL to send message. Does anyone know how
tobload that DLL in ASP.net page?

I try "Add Reference", but I got the following message:
"This is not a valid assembly or COM component.Only assemblies with
extension 'dll' and COM components can be referenced. Please make sure that
the file is accessible, and that it is a valid assembly or COM component."

Thanks

Angie
 
C

Craig Deelsnyder

Hi, all,

I have a DLL file (which wrote from Visual C++) and it could send
signalling
message to the other server. I would like to write a ASP.net web page,
and
have button to call the function in DLL to send message. Does anyone
know how
tobload that DLL in ASP.net page?

I try "Add Reference", but I got the following message:
"This is not a valid assembly or COM component.Only assemblies with
extension 'dll' and COM components can be referenced. Please make sure
that
the file is accessible, and that it is a valid assembly or COM
component."

Thanks

Angie

This is true; you were adding it as if you were using COM interop, where
you create a .NET wrapper around the COM-dll call. You are looking at
adding a call to an external library, here's a short intro:

http://msdn.microsoft.com/msdnmag/issues/02/08/CQA/

Alot more info can be found on MSDN elsewhere as well.
 
G

Guest

Hi, Craig,

I'm using VB as language in ASP.net, do you have any example in VB? Thanks

Angie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top