Results 1 to 36 of 36

Thread: Mscomctl.ocx

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Mscomctl.ocx

    Does MSCOMCTL.OCX has any dependency? Wouldn't this link Visual Basic 6.0 SP5: Run-Time Redistribution Pack install whatever file that might be missing in the user's machine
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  2. #2
    Lively Member
    Join Date
    Mar 2002
    Location
    Klamath Falls, OR
    Posts
    71
    You have to register the OCX with regsvr32.exe before it will work. I don't know if you'd call that a dependancy. The syntax for regsvr32.exe (comes with windoze) is:

    regsvr32 c:\windows\system\richtx32.ocx

    You can put a /s switch on there to make it run silently, good for making an installer if you don't like the packing and deployment wizard (I don't)

  3. #3

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Thanks, but... I already knew that. No, I mean if there is any other file (DLL, or whatsoever) that needs to be installed in the user's machine (as well) to be able to use those controls.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  4. #4

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by mattkinser
    You can put a /s switch on there to make it run silently, good for making an installer if you don't like the packing and deployment wizard (I don't)
    BTW, I don't like it either... I use Inno Setup
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  5. #5
    Lively Member
    Join Date
    Mar 2002
    Location
    Klamath Falls, OR
    Posts
    71
    I'll have to look into that innosetup thing. Looks pretty cool. I use my own installer right now. I have the shell for it all there and you just have hardcode what files need to go where and it will put them there and register them if it needs to and all that jazz. I wish I could get into the .vbp somehow and have it grab all the ocx's, dll's, etc. names and paths, i'll have to look into that too. Anyways. I'm not 100% sure, but you shouldn't need anything else besides the 1 ocx. Unless you're counting the vbrun DLL(s).

  6. #6

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by mattkinser
    I'll have to look into that innosetup thing. Looks pretty cool. I use my own installer right now. I have the shell for it all there and you just have hardcode what files need to go where and it will put them there and register them if it needs to and all that jazz. I wish I could get into the .vbp somehow and have it grab all the ocx's, dll's, etc. names and paths, i'll have to look into that too. Anyways. I'm not 100% sure, but you shouldn't need anything else besides the 1 ocx. Unless you're counting the vbrun DLL(s).
    I've never dare to write my own installer. And I guess you're missing a lot of things you should take into account. What if the files already exists? What if they exists and are newer than what you are trying to install? What if the file has no version info but the date of the existing file is newer than yours? What if the file is being used and cannot be copied? What if you need to replace a file (because yours is newer) but the file is being used (you should re-boot the system and get the file copied (by your setup) before any process try to use it.

    To sum up.... creating an installer is much more difficult than just copy the files where they should be and register them. Take that into account.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  7. #7

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Dammit!! I've always forget about something

    No... I don't mean neither the virtual machine, nor any other runtime file.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  8. #8
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    I might have misunderstood your question but,

    Mscomctl.ocx
    Mscomctl.oca
    Mscomctl.dep
    Mscomctl.srg - I have no idea what that one is...
    Don't Rate my posts.

  9. #9
    Lively Member
    Join Date
    Mar 2002
    Location
    Klamath Falls, OR
    Posts
    71
    When I said you have to hardcode it in, i meant that i have a template, and you hard code the paths into your functions, there is a bit more too it than just coping a bunch of files. It has basic functionality . It will throw an error at you if its already in use, or already exists (this would need a reboot, and you just add your installer into the runonce folder in the registry, have it check the logfile and see what still needs to be copied, very simple). Though it doesn't check the file versions, thats somthing I overlooked. That wouldn't be too hard to implement though, I know you can get at that stuff fairly easily. Thanks for pointing that out though. Luckily it hasn't caused any problems yet. I'll have to get on that.

  10. #10
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    To find out what the dependancies of a file are, just open it up in dependancy walker.

  11. #11
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    MSComCtl.ocx does have a dependency, but it is installed with Windows. The ocx is just an easy way to use the dialogs in VB programs. You could make a reference to the dll yourself and write your own code, but it's too much work. That is why there is the mscomctl.ocx file.
    <removed by admin>

  12. #12

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by Megatron
    To find out what the dependancies of a file are, just open it up in dependancy walker.
    I never understood that program.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  13. #13

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by MidgetsBro
    MSComCtl.ocx does have a dependency, but it is installed with Windows. The ocx is just an easy way to use the dialogs in VB programs. You could make a reference to the dll yourself and write your own code, but it's too much work. That is why there is the mscomctl.ocx file.
    What do you think this might be?

    Run-time error 339
    Component "MSCOMCTL.OCX" or one of its dependecies not correctly registered: a file is missing or invalid.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  14. #14

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    anyone?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  15. #15
    Lively Member
    Join Date
    Mar 2002
    Location
    Klamath Falls, OR
    Posts
    71
    You probably already tried this but..... I'd try:
    regsvr32 /u mscomctl.ocx
    to unregister it, then reboot, and then register it the normal way. Make sure its in the right directory. Make sure you don't have more than one copy of it somewhere else registered. Make sure that if you do, you unregister it before you delete it. Also, I did a search for mscomctl and it found mscomctl.dep and i dragged it over to notepad and it says somthing about comcat.dll, so you might want to make sure that is there, and registered and where it needs to be (c:\windows\system32\).

  16. #16

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by mattkinser
    You probably already tried this but..... I'd try:
    regsvr32 /u mscomctl.ocx
    to unregister it, then reboot, and then register it the normal way. Make sure its in the right directory. Make sure you don't have more than one copy of it somewhere else registered. Make sure that if you do, you unregister it before you delete it. Also, I did a search for mscomctl and it found mscomctl.dep and i dragged it over to notepad and it says somthing about comcat.dll, so you might want to make sure that is there, and registered and where it needs to be (c:\windows\system32\).
    Does that mean that the user needs the comcat.dll in their machine?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  17. #17
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Originally posted by Mc Brain


    Does that mean that the user needs the comcat.dll in their machine?
    I think it does, but I also think that ComCat.dll gets installed with windows automatically. It is on my computer here that doesn't have visual studio or VB. This is Windows 2000 Pro.
    <removed by admin>

  18. #18

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Win2K installs even the msvbvm60.dll and msvbvm50.dll.... I cannot say the same about Win ME. And the person who's having this problem is using Win ME.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  19. #19
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    Originally posted by Mc Brain
    I never understood that program.
    It's actually quite useful. You can open DLLs up and find out what their exports are too.

  20. #20

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    But it shows me hundreds of files.... how do interpret them?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  21. #21

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by Megatron

    It's actually quite useful. You can open DLLs up and find out what their exports are too.
    I get this from VB's "Depends":

    ADVAPI32.DLL
    COMCTL32.DLL
    COMDLG32.DLL
    GDI32.DLL
    KERNEL32.DLL
    MSCOMCTL.OCX
    MSVCRT.DLL
    NTDLL.DLL
    OLE32.DLL
    OLEAUT32.DLL
    RPCRT4.DLL
    SHELL32.DLL
    SHLWAPI.DLL
    USER32.DLL

    I know some of those must never be installed in the users machine, but since I'm never sure... I don't know what needs to be installed and what musn't.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  22. #22
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    Aside from the standard windows DLLs, I only get 4-5 other files.

    The correct files are listed at the bottom of the screen.

  23. #23

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by Megatron
    Aside from the standard windows DLLs, I only get 4-5 other files.

    The correct files are listed at the bottom of the screen.
    I pasted all the files that are listed at the bottom of the screen... but they're 14. Which one should I ship?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  24. #24

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Can anybody answer my last question?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  25. #25
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    How are you distributing the file? If you aren't doing it by the internet, then ship them all... otherwise, do you have access to a computer that doesn't have VB or any development tools on it? If so, just try running your program on that and write down all the files that it was missing, then add them to your installer and try again until you have all the files and it's working... kind of a hassle, but I don't know how else to do it other than the dependency walker as megatron mentioned, and I don't know how to use it either.
    <removed by admin>

  26. #26

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I'm distributing through Internet... so I don't want to ship components that are not necessary because that would increase the size of the setup file.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  27. #27

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I've added whatever file I could think of... yet, it doesn't work. The files I included were:
    • stdole2.tlb
    • msvbvm60.dll
    • oleaut32.dll
    • olepro32.dll
    • asycfilt.dll
    • comcat.dll

    He's still getting the "Run-time error '339'; Component 'MSCOMCTL.OCX' or one of its dependencies not correctly registered: a file is missing or invalid." message.

    BTW, his "system" (if you can call it system ) is Windows ME.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  28. #28
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    did you unregister it and re-register it? Why not just use the P&D wizard for him since that should work.
    <removed by admin>

  29. #29

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I hate P&D W... it´s being a long time since I don´t use it.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  30. #30

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I've created a single project with this ocx only... and this is what I got:

    [Bootstrap]
    SetupTitle=Install
    SetupText=Copying Files, please stand by.
    CabFile=Project1.CAB
    Spawn=Setup1.exe
    Uninstal=st6unst.exe
    TmpDir=msftqws.pdw
    Cabs=1

    [Bootstrap Files]
    [email protected],$(WinSysPathSysFile),,,7/15/00 12:00:00 AM,101888,6.0.84.50
    [email protected],$(WinSysPathSysFile),$(DLLSelfRegister),,5/31/98 12:00:00 AM,22288,4.71.1460.1
    [email protected],$(WinSysPathSysFile),$(TLBRegister),,6/3/99 12:00:00 AM,17920,2.40.4275.1
    [email protected],$(WinSysPathSysFile),,,3/8/99 12:00:00 AM,147728,2.40.4275.1
    [email protected],$(WinSysPathSysFile),$(DLLSelfRegister),,3/8/99 12:00:00 AM,164112,5.0.4275.1
    [email protected],$(WinSysPathSysFile),$(DLLSelfRegister),,4/12/00 12:00:00 AM,598288,2.40.4275.1
    [email protected],$(WinSysPathSysFile),$(DLLSelfRegister),,8/21/00 12:00:00 AM,1388544,6.0.89.64

    [IconGroups]
    Group0=Project1
    PrivateGroup0=-1
    Parent0=$(Programs)

    [Project1]
    Icon1="Project1.exe"
    Title1=Project1
    StartIn1=$(AppPath)

    [Setup]
    Title=Project1
    DefaultDir=$(ProgramFiles)\Project1
    AppExe=Project1.exe
    AppToUninstall=Project1.exe

    [Setup1 Files]
    [email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 4:58:10 PM,1066176,6.0.88.62
    [email protected],$(AppPath),,,8/7/02 1:32:44 AM,16384,1.0.0.0
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  31. #31

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I'm completely lost!! Why MSDN says
    339 Object server 'item' not correctly registered or not found (Error 339)
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vb98/html/vbidxmiscellaneousmessages.asp

    Does anybody have any idea to fix this?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  32. #32

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    anyone? there's got to be a solution for this!!
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  33. #33

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    please?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  34. #34

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    ^bump^
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  35. #35
    Lively Member
    Join Date
    Mar 2002
    Location
    Klamath Falls, OR
    Posts
    71
    Does this happen on everyone's machine or just this persons? Have them try reinstalling IE5.5, or switch to a different OS than ME, not only is it microshaft, its microshafts most half assed one ever. Don't go to windows 2000 sp 3, the EULA for the SP has some bit about them owning your desktop, hehehe.

  36. #36

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    This only happens on their machines, and apparently they both have Windows ME. I've asked them to try in another system and to tell me which IE thery running, but I had no response on both suggestions.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width