Advice on Web Project for interface to another DLL

  • Thread starter Thread starter Danny
  • Start date Start date
D

Danny

Hi

I'm kind of lost here.

I'm creating a ASP.NET page using C# as my code behind. I'm getting
information from the user from the ASP.NET page after the submit. The
part that I'm lost is that I want to feed this info to a DLL to run
some particular service. I'm not sure how to do that with C# ???

Also, would this scenario be handled the same way if instead of a DLL
it was another C# program?


I'm appreciate any advice. Thanks.

Danny
 
(e-mail address removed) (Danny) wrote in @posting.google.com:
information from the user from the ASP.NET page after the submit. The
part that I'm lost is that I want to feed this info to a DLL to run
some particular service. I'm not sure how to do that with C# ???

What kind of DLL is it? Is it a managed assembly or an old unmanaged type?


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
 
What kind of DLL is it? Is it a managed assembly or an old unmanaged type?

It is the old unmanage type DLL. Thanks for the help

Danny
 
What kind of DLL is it? Is it a managed assembly or an old unmanaged type?

It is the old unmanaged type DLL. Thanks for the help.

Danny
 
:
type?

It is the old unmanage type DLL. Thanks for the help

Hello,

It is possible to call functions from unmanage type DLLs using PInvoke. The
idea
is to provide C# enough information on the function (ie parameters, return
types...)

To call a simple fonction with this prototype located in test.dll

int print(int x, int y, char *name, int *error_code);

you will write :

[DllImport("test.dll")]
static extern int print(int x, int y, String name, out int error_code);

Well, this is the basic idea. It can get more complicated depending on the
function prototype :)
 
Back
Top