COM DLL from Delphi in ActiveX Control
-
I want to create ActiveX control which calls COM DLL from Delphi. I have tried this way HINSTANCE m_sampleDLL = LoadLibrary("D:\\SampleDLL.dll"); m_sample_dll = (SAMPLE)GetProcAddress(m_sampleDLL,"TestFunction"); but I am unable to get handle to Testfunction. Is this way is correct? or wether I have to use some other technique to call DLL which COM and written in Delphi. Please Help! THANX...
:) CraZyToLearn :)
-
I want to create ActiveX control which calls COM DLL from Delphi. I have tried this way HINSTANCE m_sampleDLL = LoadLibrary("D:\\SampleDLL.dll"); m_sample_dll = (SAMPLE)GetProcAddress(m_sampleDLL,"TestFunction"); but I am unable to get handle to Testfunction. Is this way is correct? or wether I have to use some other technique to call DLL which COM and written in Delphi. Please Help! THANX...
:) CraZyToLearn :)
You have to access
COM
components methods followingCOM
rules. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
I want to create ActiveX control which calls COM DLL from Delphi. I have tried this way HINSTANCE m_sampleDLL = LoadLibrary("D:\\SampleDLL.dll"); m_sample_dll = (SAMPLE)GetProcAddress(m_sampleDLL,"TestFunction"); but I am unable to get handle to Testfunction. Is this way is correct? or wether I have to use some other technique to call DLL which COM and written in Delphi. Please Help! THANX...
:) CraZyToLearn :)
Pallini's reply still holds. But are you sure SampleDLL.dll has exported function called TestFunction.
-
Pallini's reply still holds. But are you sure SampleDLL.dll has exported function called TestFunction.
Thanks Rajkumar , TestFunction is not export function, but its COM componet so is there any other way, We cant change Delphi DLL.
:) CraZyToLearn :)
-
You have to access
COM
components methods followingCOM
rules. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeThanks CPallini, I really new to all these, Will you please help me in this respect, Means How to access COM components Methods.
:) CraZyToLearn :)
-
Thanks Rajkumar , TestFunction is not export function, but its COM componet so is there any other way, We cant change Delphi DLL.
:) CraZyToLearn :)
what you are expected from sampleDLL.dll. As you are calling from your activex, you might be having some specfication to use it. Do you want the COM object to be created from the dll?
-
Thanks CPallini, I really new to all these, Will you please help me in this respect, Means How to access COM components Methods.
:) CraZyToLearn :)
See here.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke