Results 1 to 5 of 5

Thread: Event fires 2 times

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Moscow, Russia
    Posts
    10

    Question Event fires 2 times

    I have 2 Dll's.

    When event handlers was in vba it was OK,
    when i port them into Dll they happend 2 times,
    one exactly after another.
    Now handler consists of only "exit sub".

    Help! Please!

    Yury.

  2. #2
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615

    Re: Event fires 2 times

    Originally posted by YuryL


    Help! Please!

    I'll be glad to. Any code?
    Yury kak pogoda v Moskve?

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Moscow, Russia
    Posts
    10

    Post

    That's in 1st Dll
    -------------------

    Public Event AddBulkRegEv(Cd1 As String, Rn1 As String, prp1 As Variant, prp2 As Variant, Col1 As Integer, np1 As Integer, id1 As Long)

    ......
    RaiseEvent AddBulkRegEv(Cd1, Rn1, prp1, prp2, Col1, np1, id1)
    ......

    That's in 2st Dll
    -------------------

    Public Sub hre_addbulkregev(Cd1 As String, Rn1 As String, prp1 As Variant, prp2 As Variant, Col1 As Integer, np1 As Integer, id1 As Long)

    exit sub
    end sub

    Cold 2 last days, -16 C in morning, -5 C in noon.

  4. #4
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    Sorry, but a code that you provided doesn't tell me anythig. What it suppose to do?

    About weather: damn

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Moscow, Russia
    Posts
    10

    Post Re What it suppose to do?

    1st Dll keeps/modify some data structures and fires event when something's changed.

    Excell calls 2nd Dll, then 2nd dll calls 1st Dll to modify structures, after modifying 1st Dll fires the event in 2nd DLL, but somehow 2 times

    Thanx, i have to leave till morning.
    Waiting hints...

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