Results 1 to 6 of 6

Thread: A simple com problem

  1. #1

    Thread Starter
    Hyperactive Member Kirun's Avatar
    Join Date
    Oct 2001
    Location
    Karachi , Pakistan
    Posts
    333

    Lightbulb A simple com problem

    have made a sinple component dll in vb . . with a
    public sub ...
    showing a message box..
    i instantiate it through vb .. client . .
    working fine ..
    but when i do instantiate in asp by
    server.createobject ..
    it doesnot work . .
    i debugged .. its successfully loaded but.. when
    calling proc .. its getting hanged...
    but the irony is that .. its working fairly on my
    other pc wid pws..
    tell me if it is IIS prob. .
    means when i installed a component ..
    plz tell what u understand and what we can do of it .

  2. #2
    WALDO
    Guest

    Your problem lies in the 3rd line of your question

    Let's see...

    Q - If you're running the DLL on your machine, which is running PWS, where does the messagebox appear?

    A - On your machine. Why? Because your machine is acting as the server AND the client so you can't tell the difference.

    Q - If you're running the DLL on your server and viewing the ASP page on a different machine (your client), where does the messagebox appear?

    A - On the SERVER!!!! Why because that's where the DLL is running!!! You can't MsgBox from Active SERVER pages. The message box pops up on the SERVER and your DLL remains frozen until someone clicks OK on the SERVER!!!!

  3. #3
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    It's not going to work. Because it's server side and the dll is not going to support msgboxes once it's compiled. I think in this case what you need to do is go into Project properties and check unattended.

  4. #4
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    I'm a little fuzzy here, but I believe what is going on it that the dll is being created on the server and when it produce a message box it is displayed on the server and you never see it. If you are making a component that is supposed to run remotely, it should have no user interface (a message box).

  5. #5
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    Also when you place the msgbox in there. In win2k or NT what it does it reports it the Event log.

  6. #6
    WALDO
    Guest

    Talking Bingo MarkT!!!

    Right on the money

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