Search:
Type: Posts; User: smkperu
Search:
Search took 0.04 seconds.
-
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...
-
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...
-
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 ...
-
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.
...
-
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...
-
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...
-
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...
-
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
-
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...
-
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...
-
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...
-
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...
-
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...
-
Hello Trick,
Can you show this instances with simple example.
Thanks
-
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...
-
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...
-
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 ...
-
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...
-
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...
-
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...
-
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
-
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...
-
Hello Trick,
You have already shown how to add private user controls to forms at runtime at
...
-
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...
-
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:
...
-
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...
-
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 ...
-
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...
-
Hello Trick,
I wanted to use atlsimpleobjforvb simpleobject from Atlsimpleobjdeno atl project using CreateActiveXObjectInNewThread2 of modMultiThreading2.bas as follows by adding atl dll project...
-
Hello JSVenu,
Thanks for the working code.
Thanks
-
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...
-
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) {
...
-
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...
-
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...
-
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...
-
Hello dz32,
Thankyou for the support.
Thanks
-
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...
-
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...
-
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...
-
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
|
Click Here to Expand Forum to Full Width
|