Thread: Can you pass a dll url parameters?

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    80

    Question Can you pass a dll url parameters?

    I have a third party dll that I need to call. The instructions
    came with an example server link, but it does not work and
    the person is hard to get in touch with. I haven't seen this
    before:
    Code:
    Please excuse the long delay of my reply. Here is a web server library
    that allows drawing of 2D structures. The library requires an ISAPI
    capable web server, e. g. Microsoft IIS 5 or 6; it returns a picture
    that
    is embeddable in other pages.
    
    An example server for your testing purposes is available at
    
    http://54.74.133.179/pic3.dll/m?l=c1ccccc1&w=300&h=200
    
    The library can be called with the following arguments:
    l: SMILES string
    w (optional) : width, pixels, between 10 and 500, default 300
    h (optional) : height, pixels, between 10 and 500, default 200
    It looks like they're passing url arguments directly to the dll. Is this possible? This is all I have to go on.

  2. #2
    !anExpert
    Join Date
    Mar 2005
    Location
    pa
    Posts
    155
    I have not done much with dlls...
    but i can tell you that for example the dll that loads error and about pages in IE shdoclc.dll takes arguments.. it is used like this...
    if you run .. (in win98)
    res://c:\windows\system\shdoclc.dll/"pagename.htm"

    so pagename could be dnserror.htm, http_404.htm or about.dlg or whatever is in shdoclc.dll..

    i just know this because of a project i did on that dll recently.. im sure someone will give you a more general answer..

    my final answer would be "yes" though..

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    80
    Thanks, that makes sense and gets me going in the right direction.

  4. #4
    Registered User
    Join Date
    Jan 2006
    Posts
    7
    Hi-
    I'm not 100% on this, but I think this is related to the behavior of CGI. I think the way it works is, your web server will set whatever comes after the requested resource in the url (which is pic3.dll in this case) as an environment variable named QUERY_STRING (m?l=c1ccccc1&w=300&h=200). the dll must know how to parse & make use of it.

    I would look for the CGI specifications.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Speed test result
    By audinue in forum C Programming
    Replies: 4
    Last Post: 07-07-2008, 05:18 AM
  2. DLL Calling Question
    By mercury529 in forum Windows Programming
    Replies: 11
    Last Post: 01-09-2007, 06:15 PM
  3. problem in calling DLL
    By bhagwat_maimt in forum C++ Programming
    Replies: 2
    Last Post: 11-19-2006, 10:43 PM
  4. Calling a DLL
    By jamez05 in forum C++ Programming
    Replies: 1
    Last Post: 01-05-2006, 11:13 AM
  5. Troubles Calling a DLL
    By jamez05 in forum C++ Programming
    Replies: 2
    Last Post: 12-02-2005, 12:00 PM