Results 1 to 24 of 24

Thread: [RESOLVED] VB 6 - QProGIF.ocx

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Resolved [RESOLVED] VB 6 - QProGIF.ocx

    Hi again!! I didnt know how to make gifs work on VB, so I read a few articles on the internet and I ended up downloading a gif control, QProGIF.ocx, and using it.

    Ctrl+T then Browse, then you grab the control (in this case I had it on a folder on the desktop), add it to the proyect and that's it.

    So far, so good, gifs looked brilliant and I associated some funny sounds to them.

    Then I decided to try on my kids computer.

    The problem: When run the exe file, it gives me an error message saying that it cand find the control QPROGIF, more accurately:

    Component "QProGif.ocx" or one of its dependencies not correctly registered: a file is missing or invalid"

    To "help" the application to find it I created on my kids computer a folder with the same name as mine on the desktop and copied the control files there. But it does not work.

    I dont know if there is a way to tell the executable how to point a this control or which approach should I take...what do you suggest?

    Many Thanks,

    Luis

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: VB 6 - QProGIF.ocx

    If your app is to be used outside your house, I'd recommend create a proper setup.exe application using VB's Package & Deployment Wizard, Inno, or other professional installation packagers.

    If used in just your home, depending on the operating system, may want to copy the ocx to your kid's Windows\System32 folder, run regsvr32 on it and try again. From a dos command, change directories to the folder you placed the ocx in and run: regsvr32 QProGif.ocx

    If you also used other dependencies (i.e., other ocx or dll files), you may have to do the same. Creating a proper installation package will solve these distribution problems though.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    2,170

    Re: VB 6 - QProGIF.ocx

    Luis, the web browser control plays the gif file,
    Code:
    WebBrowser1.Navigate "C:\filename.gif"
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


  4. #4
    Addicted Member Mehmood Iqbal's Avatar
    Join Date
    Mar 2011
    Location
    Chakwal, Pakistan
    Posts
    150

    Re: VB 6 - QProGIF.ocx

    As LaVolpe said, Proper registration of QProGif.ocx needed.
    Programming is same like Common Sense !


  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    Hi and thanks to all, Seenu, I think the best approach here will be to use the Microsoft Internet Control and avoid complications...I did a Ctrl T and tried to select it but it wont find ieframe.dll, u tried with Browse and went to Windows\system32 and selected the file, but both ways i have error messages that i post on screenshots, thanks so much

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    [IMG]c:\ieframe.jpg[/IMG]

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    sorry forgot how to include an image in here ...!

  8. #8
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    2,170

    Re: VB 6 - QProGIF.ocx

    go advanced then manage attachments.
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


  9. #9
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,929

    Re: VB 6 - QProGIF.ocx

    Click on the "Post Reply" button (or the "Go Advanced" button in the Quick Reply area), then on the page that loads click on "Manage Attachments".

    The FAQ link near the top of the page gives more details if you need them.

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    Quote Originally Posted by seenu_1st View Post
    go advanced then manage attachments.
    Thanks Seenu

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    here is the first message

  12. #12

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    here is the second
    Attached Images Attached Images  

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    sorry the first one here
    Attached Images Attached Images  

  14. #14

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    I have ieframe.dll in my Windows\system32 directory

  15. #15
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: VB 6 - QProGIF.ocx

    Luis, regardless whether you use that gif ocx or webbrowser or anything else. Fundamentally, the idea is the same -- the target pc must have all the dependencies (ocx/dll) your app is using otherwise your app will not work when deployed to that target pc. Building a proper installation package will save you headaches.

    Also, though the webbrowser does support animated gifs, it does not support transparency in itself. The gif will be displayed on the browser transparently so that the browser's backcolor shows thru, but whatever is behind that webbrowser on your form will not show thru. If this isn't an issue, then no biggie.

    The above has no bearing on your current error. It does have a bearing, however, once you get your app all worked out.
    Last edited by LaVolpe; Jul 10th, 2011 at 12:59 PM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  16. #16
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    2,170

    Re: VB 6 - QProGIF.ocx

    Luis, open the registry editor, find "C:\WINDOWS\system32\ieframe.dll\1", once u get this value change it to "C:\WINDOWS\system32\ieframe.dll", then it wil work fine.
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


  17. #17

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    Thanks Seenu, I have tried that but look my System32..no ieframe.dll\1....
    I enclose screenshot
    Attached Images Attached Images  

  18. #18

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    LaVolpe, you are absolutely right...I have worked on that too...I downloaded InnoSetup and (I havent adressed the QProGif issue yet) and so far I have created a setup.exe file which will download under the root my project and its sub-folders and the exe file...now, I was thinking...I am pulling the files from my C: drive...what about if I put the setup on a CD...should I rename it to D:? What about computers with periferics which do not assign D: to the cd rom drive...? I attach the code, I tested it and it works fine, it takes ages to compile so I have tried with just a few video clips, but it works...

    [Setup]
    AppName=Project Logopedia2
    AppVersion=1.5

    DefaultDirName=\Project Logopedia2
    ; creates the directory Project Logopedia2, and assign it to {app}

    DefaultGroupName=Project Logopedia2
    UninstallDisplayIcon={app}\ProjectAlejandro.exe
    Compression=lzma2
    SolidCompression=yes
    OutputDir=userdocs:Inno Setup Examples Output

    [Dirs]
    ; create subdirectories inside de Logopedia2, {app}
    Name: "{app}\video"
    Name: "{app}\sound"
    Name: "{app}\family"
    Name: "{app}\main"
    Name: "{app}\food"
    Name: "{app}\gifs"
    Name: "{app}\places"



    [Files]
    ; Copy first the executable then all files to fill the subdirectories

    Source: "C:\Proyecto Logopedia\ProjectAlejandro.exe"; DestDir: "{app}"
    ; coje archivo exe dentro de Logopedia2, representado por app
    Source: "c:\Proyecto Logopedia\video\*"; DestDir: {app}\video
    Source: "c:\Proyecto Logopedia\video\panter\*"; DestDir: {app}\video\panter
    Source: "c:\Proyecto Logopedia\sound\*"; DestDir: {app}\sound
    Source: "c:\Proyecto Logopedia\family\*"; DestDir: {app}\family
    Source: "c:\Proyecto Logopedia\main\*"; DestDir: {app}\main
    Source: "c:\Proyecto Logopedia\food\*"; DestDir: {app}\food
    Source: "c:\Proyecto Logopedia\gifs\*"; DestDir: {app}\gifs
    Source: "c:\Proyecto Logopedia\places\*"; DestDir: {app}\places


    [Icons]
    Name: "{group}\Project Logopedia2"; Filename: "{app}\ProjectAlejandro.exe"


    Thanks!!!

  19. #19

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    Seenu, this is all I can find on the regedit
    Attached Images Attached Images  

  20. #20

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    Hi, I found a solution for the Microsoft Internet Controls. After Ctrl + T, Browse, you enter c:\windows\system32\shdocvw.dll and the control will show!!

    So., now I have an application working on my computer. I have created the Setup.exe. If I pass it on to another computer I have the error message about the QProGIF....

    How should I reference the QProGIF on the inno setup (iss) code. I was told that building an install package would solve all these things..but how...? Please help...the iss code is on this thread....

  21. #21

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    Also I changed this OutputDir=userdocs:Inno Setup Examples Output

    to OutputDir={app}

    to save the setup.exe on the same folder

  22. #22

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    Quote Originally Posted by LaVolpe View Post
    Luis, regardless whether you use that gif ocx or webbrowser or anything else. Fundamentally, the idea is the same -- the target pc must have all the dependencies (ocx/dll) your app is using otherwise your app will not work when deployed to that target pc. Building a proper installation package will save you headaches.

    Also, though the webbrowser does support animated gifs, it does not support transparency in itself. The gif will be displayed on the browser transparently so that the browser's backcolor shows thru, but whatever is behind that webbrowser on your form will not show thru. If this isn't an issue, then no biggie.

    The above has no bearing on your current error. It does have a bearing, however, once you get your app all worked out.
    Hi, I have built the installation package..how do I make sure the ocx and dll are referenced?? I dont want to use the webbrowser as the gifs are framed as you said...

    Many Thanks

  23. #23
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: VB 6 - QProGIF.ocx

    Not an INNO expert. The "Application Deployment" section of the forum has INNO info. You'll want to ensure the deployment package places the ocx in an appropriate folder and it is self-registered. At that point, your vb app will be able to use it. This also applies to any other dependencies your app uses.

    For home use, honestly, I'd just use VB's Package & Deployment Wizard. It prevents you from having to determine which dependencies to include/exclude, nearly 100% of the time. But use whatever package you are more comfortable with.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  24. #24

    Thread Starter
    Junior Member
    Join Date
    Jun 2011
    Posts
    30

    Re: VB 6 - QProGIF.ocx

    Ok,solved. i couldnt register the ocx because I needed to disable first the UAC in Vista!! All working on both computers!! Thanks everybody

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