I'm trying to load the OpenDSSEngine.dll lib through the COM interface. Despite having read the tips on the forum about it, I couldn't load the lib. It seems that there is a header called "OpenDSSengine_TLB.h" that contains the IDSS type but I couldn't find it. The code snippet I made to load the library is below. Could someone help me please? Thanks in advance.
//cpp code
HRESULTresult=CoInitialize(NULL);CLSIDclsid;IDispatch*DSSObj;// What type/interface to DSSObj??? IDSS type (forum) is in "OpenDSSengine_TLB.h" file???//IID riid; // Who is IID_IDSS???HRESULThr1=CLSIDFromProgID(L"OpenDSSEngine.DSS",&clsid);HRESULThr2=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,IID_IDispatch,(void**)&DSSObj);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems that a header "OpenDSSengine_TLB.h" is needed. This header defines the IDSS interface. But I couldn't find this header file. Or maybe there is another way to load OpenDSSEngine. DSS with a c++ code.
Best regards.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
I'm trying to load the OpenDSSEngine.dll lib through the COM interface. Despite having read the tips on the forum about it, I couldn't load the lib. It seems that there is a header called "OpenDSSengine_TLB.h" that contains the IDSS type but I couldn't find it. The code snippet I made to load the library is below. Could someone help me please? Thanks in advance.
//cpp code
Hello,
Check this out:
https://sourceforge.net/p/electricdss/discussion/861976/thread/ce57c5a0/
Best regards,
Hi Davis. Thanks for the quick response.
I checked the discussion you mentioned in addition to this one:
https://sourceforge.net/p/electricdss/discussion/beginners/thread/70274502/
It seems that a header "OpenDSSengine_TLB.h" is needed. This header defines the IDSS interface. But I couldn't find this header file. Or maybe there is another way to load OpenDSSEngine. DSS with a c++ code.
Best regards.