Quote Originally Posted by jsvenu View Post
Dear Trick,

Thankyou for the awesome activex dll example.This also works well like graohics dll.
But my doubt was about initializing runtime for standard dll(similar to callbackdll in "multithreading without dependencies").
You were providing initcurrentthreadandcallfunction for initializing current thread.
For initializing current thread you were gathering some information from DllGetClassObject exported function for getting vbheader and giving input to vbdllgetclassobject .
But in a standard dll DllGetClassobject is not exported.
You have already showed in "multithreading in standard exe" how to get this information when dllgetclassobject is not present in export table.This was done thru getting module instance and then e_lfanew and then AddressOfEntryPoint and finally vbheader.This is passed to vbdllgetclassobject.
I tried the same to initialize runtime in standard dll since this is also of type standard exe.But nothing was happening.
My doubt is when we are able to initialize runtime in standard exe(as in "multithreading in standard exe") why we cannot initialize runtime in standard dll since it is also of type standard exe.
Am I missing something please clarify.

regards,
JSVenu
I gave the worked example. Why don't you use it? This is more simple to use AX-dll instead Std-XE-dll. Why do you need the complexity?