Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 22nd, 2004, 06:59 PM
pr0nd3xtr pr0nd3xtr is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 pr0nd3xtr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Calling dll from asp page

Hi all, I am having a problem trying to call a dll file in a virtual directory from and asp page.

Running IIS5 and asp, I have tried a few things here:

<!--#include virtual="/ or ./ or ../ or \ ..\ etc. file.dll?"-->

<!--#include file="execdll.stm"-->

execdll.stm:
<!--#include virtual= (all the above)"-->


I have also looked through some MS documentation regarding SSI in ASP.NET with no luck either:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/ref_ssi_exec.asp

Can someone point me in the right direction regarding the proper way to call this file?

Thanks a million,

MB

Reply With Quote
  #2  
Old March 22nd, 2004, 08:42 PM
dcarva's Avatar
dcarva dcarva is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 633 dcarva User rank is Lance Corporal (50 - 100 Reputation Level)dcarva User rank is Lance Corporal (50 - 100 Reputation Level)dcarva User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 9 h 18 m 20 sec
Reputation Power: 6
Use createobject...

Set objName = Server.CreateObject("ProjectName.ClassModuleName")

Then you can access the dll functions in this manner:

objName.RunAFunction()

Reply With Quote
  #3  
Old March 22nd, 2004, 10:01 PM
pr0nd3xtr pr0nd3xtr is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 pr0nd3xtr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry, I am very new to this, and I dont really understand the context. I tried searching google for examples on this, but I havent found anything that I can relate to. How would I use this to call a dll that resides in a virtual directory?

Thanks for the reply.

MB

Reply With Quote
  #4  
Old March 22nd, 2004, 10:07 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 22 h 9 m 49 sec
Reputation Power: 181
You can't call a dll directly. If your dll isn't a com component you will probably need to put a com wrapper around the dll. In any case, you must register the component on the web server and then call it as dcarva said.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #5  
Old March 22nd, 2004, 10:10 PM
dcarva's Avatar
dcarva dcarva is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 633 dcarva User rank is Lance Corporal (50 - 100 Reputation Level)dcarva User rank is Lance Corporal (50 - 100 Reputation Level)dcarva User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 9 h 18 m 20 sec
Reputation Power: 6
What was the dll written in? What do you want to call inside of the dll? Dlls contain code that you can execute. But before you can execute the code, you need to know what function or method you are trying to get to.

You can't just include a dll into a web page. You have to register the dll with Windows. Here is a command line you can run to register the dll.

regsvr32 c:\path\filename.dll

Then to access the dll, you first use createobject to create an instance object that allows you to access the functions within the dll.

'--Replace projectname and classmodulename
Set objName = Server.CreateObject("ProjectName.ClassModuleName")

'--Now that objName is an instance of the class (in a sense)
objName.RunFunction()

Above, RunFunction is a function (or method) that is found inside the dll. (I just used RunFunction as an example)

Does this help?

Reply With Quote
  #6  
Old March 22nd, 2004, 11:26 PM
pr0nd3xtr pr0nd3xtr is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 pr0nd3xtr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The program is a combo bug tracking/knowledge base app that is web-based, on an oracle backend. To open, you can just create a link to http://server/tmtrack/tmtrack.dll? and viola. I would assume installing the program registers the dll? I checked the system components but I didnt find that particular dll listed. I am looking for a way to call that file, with any variables associated with it.

Thanks for your time.

MB

Reply With Quote
  #7  
Old July 9th, 2004, 12:05 PM
mit mit is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 mit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
problem after regenerating vislib.dll to convert vision to image

Hi I`m mit

I have to convert visio object to the image for my web side. In microsoft visio. there is vislib.dll
which is helpful for that. I have a regenarated dll name as visiodotnet.dll.

I also have one visio.vb file containing class and imported dll file

I am using ASP.

I tried to register dll file. but it gives error : dllregisterserver entry not found.

I am totally gone now....

I need further direction

If you can?

thanks

Mit

Reply With Quote
  #8  
Old July 9th, 2004, 11:44 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 22 h 9 m 49 sec
Reputation Power: 181
Unless a dll is a com object you can't register it You may be able to write your own component code wrapper around the dll you want to use. Otherwise I believe you are out of luck.

Reply With Quote
  #9  
Old July 12th, 2004, 05:57 AM
eranachum eranachum is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Jerusalem
Posts: 2 eranachum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Can't register my dll to windows

Hello, my name is Eran

I wrote a dll and I want to call it from asp page, but I can't do it. I am using the method: server.CreateObject, but can't interface with the dll. I think that my problem is registering the dll to Windows, and when that I am doing it I receive an error message that telling me that "DllRegisterServer may not be exported". what should I do?

Please Help

Regards Eran

Reply With Quote
  #10  
Old July 12th, 2004, 11:21 AM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 22 h 9 m 49 sec
Reputation Power: 181
Quote:
.. what should I do? ..


1. Post your question only once.
2. Don't post at the end of someone else's thread.
3. Read the thread you posted in.
4. Verify the dll you're trying to register is in fact a component.

Reply With Quote
  #11  
Old July 14th, 2004, 11:54 AM
RobUK RobUK is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: UK
Posts: 101 RobUK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via MSN to RobUK
It looks like the dll needs to be registered as an ISAPI add-in....

If this is the case, then refer to the documentation (RTFM) that came with the application.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Calling dll from asp page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT