COM

Comments

  • Does anyone know if there is an interface that can be implemented to enable demand loading from languages other than Visual C?  Daniel M, I notice that your NET loader cleverly gets around this issue. From a theoretical standpoint; do you know if this is possible to implement from another language (in my case Delphi Pascal).  I have worked out how to create a kind of in process "add on" but it would be nice to integrate it more fully into Bricscad.  Also does anyone know if it is possible to create a Command Method from a COM based/Interface approach? Or is this restricted to Visual C as well?  Thanks for any insights (even if they are in the negative!).

  • It seems like it would be possible, I wouldn't be able to give you much direction as my knowledge about COM/Delphi is practically nil. With .NET it was fairly strait forward as Microsoft provides all the tools to bridge the .NET world with the native C++ world. It was just a matter of writing a few wrappers.

     

    If it is possible to create a DLL in Delphi that uses stdcall calling convention, then it might be possible to build a BRX/DRX module that loads and calls your Delphi DLLs

     

    thoughts

    Build a BRX/DRX (A) module that loads a single Delphi module (B)

    (A) would need to have a function exposed to (B), so (B) can register new commands.

    (B) would need to have a function exposed to (A), so (A) can call it when the command is executed. (B) can then forward the call to the appropriate Delphi method. (B) would need to know how to dynamically load/call other Delphi modules and functions.

     

    If this seems doable on the Delphi end, I will try to help you on the BRX/DRX side.

     

This discussion has been closed.