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?
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"
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
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"
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.
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}
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....
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...
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"