PDA

View Full Version : ActiveX --- HOW?



ReneMiner
02-09-2021, 11:21
i tried dozens of controls by now. The only one working is the internet explorer browser from the samples.
No other ocx will even show up.
Here is a very simple, detailled documented and all required files shipping ocx-control for download (https://www.codeproject.com/Articles/7282/Property-list-ActiveX-control?fid=57072&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4017442).
if anyone gets it to show up or even react on an event then please tell me how.

primo
02-09-2021, 17:52
ReneMiner,
for ActiveX dll's or ocx's we shoukd first register it in the windows system else it can't be called
in your case from the link you have provided , open the command prompt to the directory of your PropList.ocx and then write:
regsvr32 PropList.ocx
you should get the MSG:
10271

then you can call that ocx
there is a comments by Petr about using COM_CallMethod here
http://www.thinbasic.com/community/showthread.php?9465-calling-activex-dll
it is here calling ActiveX DLL
i gave tested all the examples with Windows XP. not sure how it behave in win7/8/10

primo
03-09-2021, 08:40
yes the program in the https://www.codeproject.com/Articles/7282/Property-list-ActiveX-control?fid=57072&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4017442
works , i have tested it with VB6, it works and the buttons respond to clicks such as clicking on RGB button will launch the paint program :
10272

there is an error MSG at first run: "an error ocurred in the secure channel support" this is may be by the url addresses in the VB6 project.

ReneMiner
03-09-2021, 15:51
the regsvr32-thing i tried already but i used regsvr32 -i proplist.ocx and always got the message the entry-point were not to find. VB6 did not react disturbed but once i added the component to the project i was able to use it in vb6 without any problems - but it did not show up in tb.

I will try without the -i switch after using the -u switch and then reboot. Lets see.
Now i will have a look at the link

thanks for the meantime