Git Product home page Git Product logo

Comments (2)

fafalone avatar fafalone commented on August 23, 2024

The flag was a temporary workaround so RegisterTypeLib wouldn't register 3rd party interfaces (i.e. all of them in tbShellLib), as that call would fail, causing ActiveX control builds to fail.

It's no longer neccessary since tB now has a custom replacement for that function controlled by the [ ComImport ] attribute, but the default value is not registering so that didn't need to be added.

So [ OleAutomation(False) ] tags can be removed, but the vast majority of interfaces shouldn't be, as they're not part of the official definitions. Specifically, ITypeInfo is not marked oleautomation in the SDK headers, so the attribute is correct. oleautomation=true would only be found on things like the shell automation objects like IWebBrowser, but it shouldn't be necessary to use them.

from windevlib.

Greedquest avatar Greedquest commented on August 23, 2024

Thanks, I didn't realise there was an SDK standard you were working to and that of course makes sense. For some reason it's still showing up in my ActiveX Dll and I can make an ITypeLib variable in VBA no issue, so maybe I'm misunderstanding what it does anyway.

e.g.

[ AppObject ]
Public Class TypeLibEntryPoints
    Public Function GetExtendedModuleAccessor(ByVal moduleName As String, ByVal proj As VBProject, Optional ByRef outPrivateTI As tbShellLib.ITypeInfo) As Object
    	Return API.GetExtendedModuleAccessor(moduleName, proj, outPrivateTI)
    End Function
End Class

Compiles fine and from VBA I can interact with the ITypeInfo no problem

from windevlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.