I found an article discussing initializing COM/ActiveX dll's without registering the COM object, ( see the attached pdf).
If possible it would mean that ActiveX Dll's could be handled as 'normal' dll's in APM without using luacom, eg. the Chilkat components.
The reason why i am interested in this is the possibility to create wrappers without writing a lot of code for converting the obj:something(x,x,x) syntax to the normal syntax, required to get the intellisense to work in AMS.
What i need is help for converting the VB code below to APM, using __DLL.LoadLibrary and __DLL.GetFunction
Code: Select all
Type IID
data1 As Long
data2 As Integer
data3 As Integer
data4(7) As Byte
End Type
Declare Function DllGetClassObject Lib "CodeSample1.dll" _
Alias "DllGetClassObject" _
(REFCLSID As Long, REFIID As IID, PPV As Long) As Long
Sub InitVBdll() ' Invoke "COM initialiser" in a VB6 dll
Dim pIID As IID
Dim pDummy As Long
' Set pIID = IID of IClassFactory
' = {00000001-0000-0000-C000-000000000046}
pIID.Data1 = 1
pIID.Data4(0) = &HC0
pIID.Data4(7) = &H46
Call DllGetClassObject(pDummy, pIID, pDummy)
End Sub
Hope somebody has the time to look into it
Kjeld
Edit: Attching PDF-files is not allowed, so please get it from the rar