Search:

Type: Posts; User: smkperu

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: General activex dll multithreading clarification

    Hello Trick,

    In a activex dll in new thread we can create private objects of std exe (in which the activex dll is loaded) by using callbacks thru InitCurrentThreadAndCallFunction of...
  2. Re: General activex dll multithreading clarification

    Hello Trick,

    I got access to the App object in new thread in activex dll(single threaded) by just accessing it once in main thread in the same activex dll just as you showed in 2.standard...
  3. Re: General activex dll multithreading clarification

    Hello Trick,

    1. it is possible to access App object in new thread

    in standard exe in any new thread when runtime is initialized in ThreadProc as follows from modMultithreading2.bas using ...
  4. Re: General activex dll multithreading clarification

    Hello Trick,

    After deep debugging I identified the problem is

    using App object in Form1.frm of actxdllwithapt_threaded project at https://www.vbforums.com/attachment....5&d=1696428326.
    ...
  5. Re: General activex dll multithreading clarification

    Hello Trick,
    Ok.
    Still what I did'nt understand is that myactsingle1 of https://www.vbforums.com/attachment....7&d=1696260349 project in General-activex-dll-multithreading-clarification runs...
  6. Re: General activex dll multithreading clarification

    Hello Trick,

    What is the mistake I have to correct in actxdllwithapt_threaded1 https://www.vbforums.com/attachment.php?attachmentid=188855&d=1696428326
    so that it can work similar to myactsingle1...
  7. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    I made a activex dll (single threaded) actxdllwithapt_threaded1.dll with a form, module and multiuse class as follows:

    Class1 (multiuse class) code


    Option Explicit

    Dim...
  8. Replies
    91
    Views
    48,410

    Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    I started a new thread at https://www.vbforums.com/showthread.php?901207-General-activex-dll-multithreading-clarification&p=5619017&viewfull=1#post5619017

    Thanks
  9. General activex dll multithreading clarification

    Hello Trick,

    I wrote a simple multithreaded activex dll which can create its private objects in the new thread.
    I can understand that it works when set to apartment threaded.
    But I don't...
  10. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    When we run the code with actx dll set to single threaded the code in the dll thread runs in main thread even when run compiled outside IDE according to COM rules as you already...
  11. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    This is similar to your callback demo.
    Only difference is you are using standard dll(CallbackDll.dll) and I am using (activex dll single threaded)simpleactsingle.dll.

    You are...
  12. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    When we create a thread in std exe it works when we use vbCreateThread without any restrictions.

    But when we create thread in public object actx dll(single threaded) and try to run...
  13. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    1. In a std exe

    when we create and display a private object in new thread it is created in new thread.

    But even when we create and display a public object in new thread it is...
  14. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    Can you show this instances with simple example.

    Thanks
  15. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    If I use a public object in (activex dll) with atleast one event and use it in my standard exe supporting MultiThreading( using your modMultiThreading2.bas) by adding thru project...
  16. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    This is the reason I mentioned that we have to create another(extra) VB thread on client side so that events can be processed or received in this subscriber thread without...
  17. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    I mentioned about the same raw callbacks as callbacks in the callback demo provided.
    How to fire event from a secondary thread using sink interface so that it can behave just like ...
  18. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    Visual Basic uses apartment threading model. Cross-thread function calls need
    to be marshalled. Visual Basic does not support events fired directly from any
    thread other than the...
  19. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    Events are received in the same thread in which the source object is called which always requires extra thread on the client side so as to keep the main thread always responsive.
    But...
  20. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    As you already said for Private objects I will use notification solution to the main thread instead of events.

    But for public objects how can we receive events from arbitrary...
  21. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    I achieved using receiving events in standard exe
    using the following code in Form1 :



    Public WithEvents m_class1 As Class1
    Private Sub Command1_Click()
    Dim thid As Long
  22. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    When we declare a private user object in one thread in standard exe project if we want to call its methods to be called from another thread
    we use Marshal/Marshal2 to marshal it...
  23. Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    You have already shown how to add private user controls to forms at runtime at
    ...
  24. Multithreading and Event Marshalling Question Using The Tricks Threading example

    Hello Trick,

    Did not understand.

    1. Can you show how to make private objects/events work using marshalling using Marshal/Marshal2 and UnMarshal functions along with...
  25. Replies
    91
    Views
    48,410

    Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    In order to test receiving events of private class Class1 in new thread I did a standard exe application with form1 having single button command1 and Class1 as follows:

    ...
  26. Replies
    91
    Views
    48,410

    Re: [VB6] - Module for working with multithreading.

    Hello Trick,


    Thank you.I corrected the ProgID.

    I have used atl object atlsimpleobjforvb which was not supporting events.

    Can I pass Atl object which supports events and using...
  27. Replies
    91
    Views
    48,410

    Re: [VB6] - Module for working with multithreading.

    Hello trick,

    It does'nt matter whether I use

    Dim x As ATLSIMPLEOBJDENOLib.atlsimpleobjforvb or Dim x As Object in the simplevbatlclient standard exe project already attached

    If I comment ...
  28. Replies
    91
    Views
    48,410

    Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    I tried the following two ways by removing the lib from references so that atl lib is accessible to vb client exe:


    1.Copied Project1.exe to atl project debug folder so that...
  29. Replies
    91
    Views
    48,410

    Re: [VB6] - Module for working with multithreading.

    Hello Trick,

    I wanted to use atlsimpleobjforvb simpleobject from Atlsimpleobjdeno atl project using CreateActiveXObjectInNewThread2 of modMultiThreading2.bas as follows by adding atl dll project...
  30. Re: using VbTrickThreading-master examples without the typelibs for Callback and Mar

    Hello JSVenu,

    Thanks for the working code.

    Thanks
  31. Re: using VbTrickThreading-master examples without the typelibs for Callback and Mar

    Hello Trick,

    How to call a third party vb6 standard dll exported function using Declare statement
    or LoadLibrary/GetProcAddress in a vb6 standard exe.Here I cannot make the following code from...
  32. Replies
    5
    Views
    937

    Re: Displaying address of EXEPROJECTInfo

    Hello dz32,

    Thankyou for the source in vb,I will go thru it.
    Why is the last parameter for __ImageRvaToVa32 is passed NULL in the following code
    PVOID rvaToPointer(DWORD Address) {
    ...
  33. Replies
    5
    Views
    937

    Re: Displaying address of EXEPROJECTInfo

    Hello dz32,

    I donot have qt compiler.So I tried to use approximatly the same in msvc++ 6.0.
    So some things like I had to do in vc ++ 6.0 like for QSet I used Set in std c++.
    For qint64 I...
  34. Replies
    5
    Views
    937

    Displaying address of EXEPROJECTInfo

    Hello dz32,

    I tried a c/c++ console application based on VBParser-1.0 from
    http://sandsprite.com/vb-reversing/VBParser/

    as follows in EXEProjectInfo.cpp


    #include <windows.h>
    #include...
  35. Re: using VbTrickThreading-master examples without the typelibs for Callback and Mar

    Hello Trick,

    The e_lfanew is last field of IMAGE_DOS_HEADER structure.


    How is the offset of &H3C calculated in the SearchForVbHeader in modDllInitialize module in the following...
  36. Replies
    6
    Views
    2,131

    Re: Scripting arbitrary vb6 applications

    Hello dz32,

    Thankyou for the support.

    Thanks
  37. Replies
    6
    Views
    2,131

    Re: Scripting arbitrary vb6 applications

    Hello dz32,

    In the link http://sandsprite.com/blogs/files/VB...d_teardown.pdf

    there is only partial snapshot of int HandleIPCMsg(char* m_msg) function .

    Can you show me the complete part...
  38. Replies
    6
    Views
    2,131

    Re: Scripting arbitrary vb6 applications

    Hello dz32,

    In the link https://decoded.avast.io/davidzimmer/scripting-arbitrary-vb6-applications/

    How is the vbApp initialized in dll.cpp.

    The two classes of TestApp are made public.
    But...
  39. Re: how to list and call a vb6 std exe class,forms and module methods

    Hello dz32,

    Based on your explanation I checked in IDA disassembler and understood that
    Signature 55 8B EC 83 EC ?? 68 ?? ?? ?? ?? 64 A1 00 00 00 00 50 64 89 25 00 00 00 00 in Hexview is...
  40. Re: how to list and call a vb6 std exe class,forms and module methods

    Hello dz32,

    The following is a vb6 standard application using only
    single module Module1 with methos Main and abc as follows:

    Module1.bas


    Public Sub abc()
    MsgBox AddressOf Main
Results 1 to 40 of 144
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width