-
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.
-
'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.
-
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)
-
So are they server- or client-side?
-
-
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.
-
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?
-
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.