|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Use createobject...
Set objName = Server.CreateObject("ProjectName.ClassModuleName") Then you can access the dll functions in this manner: objName.RunAFunction() |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
||||
|
||||
|
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? |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
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.
|
|
#9
|
|||
|
|||
|
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 |
|
#10
|
|||
|
|||
|
Quote:
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. |
|
#11
|
|||
|
|||
|
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. |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Calling dll from asp page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|