PC Review


Reply
Thread Tools Rate Thread

Communicating between .net .dll and asp

 
 
Peter
Guest
Posts: n/a
 
      11th May 2004
I'm looking to pass two variables from an asp page to vb.net dll.

IE. intA= 1 intB = 4

The dll should add these two integers together and return 5.
[intA+intB]

I know this is a simple example that could be done within asp easily
but I'm trying to understand how the DLL communicates with asp.

If someone would be kind enough to post the .dll code and the asp code
it would be greatly appreciated. I'm just not finding what I need in
the MS help files.

-Peter
 
Reply With Quote
 
 
 
 
Cowboy
Guest
Posts: n/a
 
      11th May 2004
With .NET, you have to create a COM callable wrapper (tlbexp.exe) or place
the DLL in COM+ (component services) to have it callable by ASP (which uses
COM). With VB6, you can more easily call the DLL, as it is COM, not .NET.

Hope this makes sense.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Peter" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm looking to pass two variables from an asp page to vb.net dll.
>
> IE. intA= 1 intB = 4
>
> The dll should add these two integers together and return 5.
> [intA+intB]
>
> I know this is a simple example that could be done within asp easily
> but I'm trying to understand how the DLL communicates with asp.
>
> If someone would be kind enough to post the .dll code and the asp code
> it would be greatly appreciated. I'm just not finding what I need in
> the MS help files.
>
> -Peter



 
Reply With Quote
 
Sven Groot
Guest
Posts: n/a
 
      11th May 2004
Peter wrote:
> I'm looking to pass two variables from an asp page to vb.net dll.
>
> IE. intA= 1 intB = 4
>
> The dll should add these two integers together and return 5.
> [intA+intB]
>
> I know this is a simple example that could be done within asp easily
> but I'm trying to understand how the DLL communicates with asp.
>
> If someone would be kind enough to post the .dll code and the asp code
> it would be greatly appreciated. I'm just not finding what I need in
> the MS help files.


I'm sorry but I don't have the time to write complete examples like that.
Try looking in the documentation/MS website for COM Interop and regasm.exe,
you should be able to find what you need.

--
Sven Groot

http://unforgiven.bloghorn.com

 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      12th May 2004
Hi Peter,

I still want to try this, however I think that remoting is the route to
search for in this case.

Cor


 
Reply With Quote
 
Peter
Guest
Posts: n/a
 
      14th May 2004
I finally found what I was looking for at http://www.vbheaven.com.
The have an example of a class, soup to nuts....
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
communicating to vb.net dll =?Utf-8?B?V2VuZHkgRWxpemFiZXRo?= Microsoft ASP .NET 2 25th Mar 2005 09:48 PM
DC not communicating Ari Microsoft Windows 2000 Active Directory 1 21st Jul 2004 03:02 PM
IE sometimes not communicating with .PDF Amir Windows XP Internet Explorer 0 4th Nov 2003 04:44 PM
Communicating XP with DOS Mohammed Nadeem Windows XP Networking 0 5th Sep 2003 03:49 PM
Re: Not communicating John H Printers 0 24th Aug 2003 06:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 PM.