Re: Can't access Application variable in TWebModule...



On Thu, 22 Feb 2007 11:01:03 +0100, Hans-Peter Diettrich
<DrDiettrich1@xxxxxxx> wrote:

J French wrote:

This DPR file uses three units. Therefore the Application global
variable must be declared in one of those three units. Find the correct
one, and then make sure it appears on the "uses" clause of whatever
other units need to access that variable.


Is not TApplication in the Forms unit

This is only the Application type for GUI apps. Other app types use
different classes, in other units. The above search algorithm is correct.

Interesting, do you know with which version of Delphi this started ?

Blaise's DPR looked like a DLL


.



Relevant Pages

  • Re: form in dll
    ... groupbox. ... this error comes from delphi think. ... >> should this function be in the dll project dpr file or in the form unit? ... >> dpr didn't know application. ...
    (alt.comp.lang.borland-delphi)
  • Re: Delphi 2007 is hanging
    ... If you add a file to the uses clause in a unit, and the file is not in the ... the directory is in the Project Search Path. ... I had to include all units in the .dpr file. ... The project and Win32 Library search paths work for me in Delphi 2007 ...
    (borland.public.delphi.non-technical)
  • Re: DLLMain - is it correct name ?
    ... >I need to initialise global variable in DLL. ... >Can I do it in DLLMain function? ... >What is correct name for this function in Delphi? ... In the Project's DPR ...
    (alt.comp.lang.borland-delphi)
  • Re: Crawling Custom Metadata Using SPS 2003
    ... I have not yet been able to get anything but strings back from the query. ... CAST does not work in the WHERE clause, though it does work in the SELECT ... the resulting dll seems to be missing the entry point, ... >> The bad news is that it seems like all custom properties can only be ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Fastcode Memory Managers in the Realworld
    ... Was it successfull or did you have ... One warning I put in the memory manager as the last unit in the uses clause ... violation at address 0165EF0F in module 'ISAPIUpdate.dll'. ... I just now I put in the FastMM version (as the first in my dpr uses ...
    (borland.public.delphi.language.basm)