Tashology Posted September 4, 2015 Author Share Posted September 4, 2015 Hi,I recently got a new PC. I loaded Eclipse and attempted to run it in VB6 and got a 'user-defined type not defined' error on the following line:```Private Sub listCharacters_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)```Any ideas what's up?Thanks, Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted September 4, 2015 Share Posted September 4, 2015 You need to download and install this https://www.microsoft.com/en-us/download/details.aspx?id=10019 Link to comment Share on other sites More sharing options...
Tashology Posted September 4, 2015 Author Share Posted September 4, 2015 I've installed the common controls and attempted to run it again and it still isn't working. I'm also getting an error that it can't load'MSCOMCTL.OCX' - it's there and I've installed the runtime stuff.Any other ideas? Link to comment Share on other sites More sharing options...
Azizele Posted September 4, 2015 Share Posted September 4, 2015 I just had this problem and I resolved it. Make sure you register all of the .dll's manually in regsvr32 from both sysWOW32 an system32 Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted September 4, 2015 Share Posted September 4, 2015 https://msdn.microsoft.com/en-us/vstudio/aa662927 Try installing some of the stuff under additional downloads, I know that's what I had to do Link to comment Share on other sites More sharing options...
Tashology Posted September 5, 2015 Author Share Posted September 5, 2015 Ok, I don't appear to be getting the previous issue however when I try to run the project now I get 'user type not defined' on this line:Vertex(0 To 3) As TLVERTEXI've installed a number of things from the link with no avail and I've registered all the DLLs. No luck. Link to comment Share on other sites More sharing options...
Tashology Posted September 6, 2015 Author Share Posted September 6, 2015 I am getting other issues which _might_ be the cause. When I load up the project there are some errors and it says to refer to the log files.I opened one of the log files for Editor_Events and found this:```Line 1696: Class MSComctlLib.TabStrip of control tabCommands was not a loaded control class.Line 3930: Class MSComctlLib.TabStrip of control tabPages was not a loaded control class.```Is this causing the issues? If so what can I do to fix it? Link to comment Share on other sites More sharing options...
Helladen Posted September 6, 2015 Share Posted September 6, 2015 The version used in client.vbp is wrong. Change MSCOMCTL.OCX 2.1 to 2.0\. Use notepad to edit it. If it is 2.0 change it to 2.1. Link to comment Share on other sites More sharing options...
Tashology Posted September 6, 2015 Author Share Posted September 6, 2015 @'Helladen':> The version used in client.vbp is wrong. Change MSCOMCTL.OCX 2.1 to 2.0\. Use notepad to edit it. If it is 2.0 change it to 2.1.Thanks for the help but: What do I edit? The VBP or the OCX file? And where is the value to change? Link to comment Share on other sites More sharing options...
BeNjO Posted September 9, 2015 Share Posted September 9, 2015 @'Helladen':> The version used in client.vbp is wrong. Change MSCOMCTL.OCX 2.1 to 2.0\. Use notepad to edit it. If it is 2.0 change it to 2.1. Link to comment Share on other sites More sharing options...
Tashology Posted September 9, 2015 Author Share Posted September 9, 2015 ![](http://i.imgur.com/w5qNmTK.png)This is the VBP project I have open. I can't see where the MSCOMCTL version or where to change it.Also I looked into the MSCOMCTL file as well but it's full of random symbols and I can't see anywhere to edit it.Any recommendations? Link to comment Share on other sites More sharing options...
Helladen Posted September 9, 2015 Share Posted September 9, 2015 You need to add it in if it is missing. I am not sure exactly, it is something I'd have to troubleshoot on my end to give you a straightforward answer.Make sure your client.vbp has this.Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; MSCOMCTL.OCXVBP do not edit OCX.If it doesn't, add it. Change 2.1 to 2 if you error. Make sure to reload source and don't save any changes that Visual Basic 6 makes unless it works. Link to comment Share on other sites More sharing options...
Tashology Posted September 9, 2015 Author Share Posted September 9, 2015 Ok, I've added it - I tried it with 2.1 and got 'MSCOMCTL.OCX could not be loaded'. I changed the 2.1 to 2.0 and didn't get the error. When I tried to run the program, however, I still got the user-defined type not defined error. Link to comment Share on other sites More sharing options...
Helladen Posted September 9, 2015 Share Posted September 9, 2015 Redownload source, which engine are you using? Link to comment Share on other sites More sharing options...
Tashology Posted September 9, 2015 Author Share Posted September 9, 2015 Eclipse Worlds 1.7 Link to comment Share on other sites More sharing options...
boasfesta Posted September 9, 2015 Share Posted September 9, 2015 First Step: Download all the OCX and DLLs required, only the 32bits version!Second Step: Move all of it for the System32, and then register them using regsvr32 dllname.dll (Use Windows + R to Run)Third Step: Open VB6, go to Project > References and add the DLLs you download.Fourth Step: Go to Project > Components and add the OCXs you download.Dont forget to select the DLLs and OCXs on VB6 after add them! Link to comment Share on other sites More sharing options...
Tashology Posted September 10, 2015 Author Share Posted September 10, 2015 I don't know what I did. I tried running it and it worked. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now