Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Using COM object
Re: Using COM object [message #61591 is a reply to message #15379] Thu, 20 March 2025 20:23 Go to previous messageGo to previous message
JeyCi is currently offline  JeyCi
Messages: 69
Registered: July 2020
Member
I'm not sure, that given link is what you need -- - it sems to be just prototype of this -- yes, you can import functions from Dll (that you can see with Dependency Walker), but from COM these will be those from vtbl (virtual table, - an array of function pointers) that in COM just give access to the COM-container/wrapper (like DllInstall, DllGetClassObject, DllRegister - aka some general stuff), and from virtual interface(s) of COM, some of which acts as Class Factory, you implement class(es) itself with its methods ==> thus, declaration of FN in DLI seems dobtfull for me, but I didn't yet experiment with Dl class from here

C-classes-from-a-DLL (incl. COM)

to register in cmd regsvr32 "C:\myCOM.dll"
to unregister regsvr32 /u "C:\myCOM.dll"

you can import your comDll if it has TypeLib inside -- see in oleview.exe

but can just create Client with CoInitialize() and corresponding CoUninitialize() pair. Then get CLSID from CLSIDFromProgID(..[COMname.CoClass]..) and CoCreateInstance() to create IDispatchPtr, that can use then to dispatch any metod from COM-Interface


Best regards.

[Updated on: Thu, 05 June 2025 19:25]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Umk fails to download UppHub packages on Windows (git.exe not found error)
Next Topic: How to link assembler compiled file
Goto Forum:
  


Current Time: Thu Aug 14 22:51:34 CEST 2025

Total time taken to generate the page: 0.12060 seconds