i WANT TO change the caption using vb6. I changed the caption using form(.frm).
I have made the changes in the code files but when I am compiling the new
code the error which I am getting is regarding "MSComctlLib.Button". I
also tried to include the mscomctl.ocx but it again gives error that it is
not registered ActiveX control. So what should I do in order to rectify
it. I also executed the batch file in the support directory but it is
creating the cab file with older exe. Please let me know how can I make
new exe file.

Recommended Answers

All 2 Replies

Try to register the ocx file using REGSVR32 key.

have u copied the mscomctl.ocx file to ur system directory?

if yes then pass the following command to register the above ocx :-

if u use win9.x :
regsvr32 %systemroot%\system\mscomctl.ocx

if u use winxp :
regsvr32 %systemroot%\system32\mscomctl.ocx

then add the control from project->components

it should work now.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.