Results 1 to 8 of 8

Thread: ATL and ASP Question

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    LA
    Posts
    7

    Post

    Hi,
    Does any body knows how to retreive the correct syntax to retreive a 'Application variable ' from an ASP page in,to a C++ DLL using ATL. I already have all the bolerplate and the basic logic down, but I just can't get the correct syntax.
    Please help, and also please recomend a good book if you guys know any.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    'Application Variable' - never heard of that one.

    If it's to do with when the page is parsed, you can't use it because all the code has gone by the time the COM object is created.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    LA
    Posts
    7

    Application variables

    Application variables are declared in the 'global.asa' of the web project, and their life time is for the entire duration of the application (web)

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    So are they server- or client-side?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    LA
    Posts
    7
    Server side

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    In that case you're going to have a hard time, because the COM object will run client-side, thereby not being able to access the server.

    So, how about including the necessary data in the page somewhere, in a comment at the top, for example? The object can then read it.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    LA
    Posts
    7
    That's a good idea, so you are saying that any extra information I need in my DLL I should include it as extra information for the COM to read?

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Basically, yes. If you look at some pages they have loads of 'scrambled' data at the top of the source, which can be easily loaded & parsed by scripts, COM objects, etc.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width