Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running dll's under .net 1

Status
Not open for further replies.

DelphiAaron

Programmer
Jul 4, 2002
826
AU
can standard windows dll's be run under .net ?

i.e. a dll written in C++ or Delphi ect..

Aaron Taylor
John Mutch Electronics
 
If the DLL is a COM (ActiveX) DLL then see "COM Interop" else see the "Declare Statement", using the Index for Help or the MSDN CD if you have it.

Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Aaron, John's response is accurate, but I'll elaborate on it if I can.

Yes, you can create a DLL to use in an ASP.NET script using codebehind. Not sure of your experience with any of the Microsoft's programming tools (Visual Basic, Visual whatever), but with Visual Studio.NET, you can typically add a reference to a DLL. Other DLL's you'll need to use a Delcare Statement like the following example:

Public Declare Function SetWindowsHookEx Lib "user32" _
Alias "SetWindowsHookExA" (ByVal idHook As Integer, _
ByVal lpfn As KeyboardHookDelegate, ByVal hmod As Integer, _
ByVal dwThreadId As Integer) As Integer

There is a lot of possibilities depending on what tool you are using to create the ASP.NET apps, and what DLL you want to reference.

You can do some searches on the web to get some additional information.

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top