|
-
Nov 10th, 2000, 11:59 AM
#1
Thread Starter
New Member
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.
-
Nov 10th, 2000, 02:12 PM
#2
Monday Morning Lunatic
'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
-
Nov 10th, 2000, 02:29 PM
#3
Thread Starter
New Member
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)
-
Nov 10th, 2000, 02:34 PM
#4
Monday Morning Lunatic
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
-
Nov 10th, 2000, 02:44 PM
#5
Thread Starter
New Member
-
Nov 10th, 2000, 02:47 PM
#6
Monday Morning Lunatic
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
-
Nov 10th, 2000, 02:57 PM
#7
Thread Starter
New Member
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?
-
Nov 10th, 2000, 03:03 PM
#8
Monday Morning Lunatic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|