Com objects using the same global obj ref.

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Com objects using the same global obj ref.

    I'm sure that the following is possible, I just need a little help
    please.

    I have a object which I declare as a application object "gObj".

    I need to use "gObj" with all sessions. I need "gObj" to have access
    based on the user's id. Is this possible without creating multiple
    gObj's?

    Code would be something like:

    Application_OnStart
    set gobj = Server.Create( "someDll" )

    gobj.uname = "somename"
    gobj.port = 1234
    gobj.pwd = "pwd"
    Alex Guest

  2. Similar Questions and Discussions

    1. #40604 [NEW]: Objects disappear from the global scope
      From: dagdamor at simps dot ru Operating system: Windows PHP version: 5.2.1 PHP Bug Type: Class/Object related Bug...
    2. using static objects (declared in global.asax) in webforms
      Hi. I'm in the process of moving an application from ASP to ASP.NET, & I'm writing in VB, using VS.NET. I'm new to the .NET framework & have a...
    3. Global Error handling in Applicatio_Error() of Global.asax
      Hi all, For a web application if we are using web farm, and if i want to do Global Error handling can i use Applicatio_Error() method in...
    4. Help Please: 'Warning 5001 global variable "iF_timer" already defined in global scope
      Hi there, I have just started to get this error: 'Warning 5001 global variable "iF_timer" already defined in global scope The variable name...
    5. accessing Global.asax design time objects
      hi, how to access to Global.asax design time objects from my asp.net page? thanks in advance ..Javier Ros.
  3. #2

    Default Re: Com objects using the same global obj ref.

    First thought: Use an ActiveX EXE for the global functionality. You can then
    use GetObject(). A COM+ component might help in this regard, but I am not
    sure. This is just a thought, as I have not tested any of this.

    The best method, if you have the inclination (which I know will work) is to
    extend the IIS model with an ISAPI component. You have to use C++ for COM
    based implementations (ASP, for example), so it is not an easy matter. But,
    it can be done.

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA

    ************************************************** ********************
    Think Outside the Box!
    ************************************************** ********************
    "Alex" <sharpe_a@hotmail.com> wrote in message
    news:d9a9df34.0310222121.1dd2a587@posting.google.c om...
    > I'm sure that the following is possible, I just need a little help
    > please.
    >
    > I have a object which I declare as a application object "gObj".
    >
    > I need to use "gObj" with all sessions. I need "gObj" to have access
    > based on the user's id. Is this possible without creating multiple
    > gObj's?
    >
    > Code would be something like:
    >
    > Application_OnStart
    > set gobj = Server.Create( "someDll" )
    >
    > gobj.uname = "somename"
    > gobj.port = 1234
    > gobj.pwd = "pwd"


    Cowboy \(Gregory A. Beamer\) Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139