Solved

VB4 and JPGs file

Posted on 1997-03-08
4
245 Views
Last Modified: 2013-11-19
Please help me:

I have Visual Basic 4 Pro 32 bit italian version
I really _need_ to load JPG images because I have to put thousands of
images in a CD-ROM and they will not fit in it if not in JPG format.

When I create a picture or an image box, VB4 says that the only
formats are: BMP, ICO, etc.
Lots of peolpe say that VB4 pro 32 loads Jpgs and also without any
special control added. I believe them but my VB4 does not work.
I installed VB5 CCE and it loads perfectly JPGs (so I KNOW how to load
images...).
I tried to add VB5 ocxs (comdlg32.ocx and comctl32.ocx) but without
success.

How can I manage to load JPGs in my VB4?
Why other people (which seem to have the same program) succed in
loading JPGs?
What should I do?
I don' t want to use Oliphant dlls.

Please help me


0
Comment
Question by:fica
  • 2
4 Comments
 
LVL 1

Expert Comment

by:andyb013197
ID: 1424247
Have a search around for a file called gv21.zip. Although in VB3 format this gives source for displaying jpgs amongst other things. Alternatively try ImageMagic, there is c source there for almost any graphics you need to do (but it would need to be in c unfortunatly).
0
 
LVL 5

Accepted Solution

by:
volking earned 200 total points
ID: 1424248
Crescent Software has an Enhanced Picture Control in their QuickPac Pro collection. The whole collection is relatively cheap (about $150). The Enhanced Picture control handles JPG's fine and even allows dynamic scaling of the image. Great control.  Crescent Software (617)280-3000
0
 
LVL 5

Expert Comment

by:volking
ID: 1424249
Forgot to mention. You can download their entire collection from the Web for free for evaluation purposes. The limitation of the downloaded eval copies is that you can't make an EXE, but you can try out the controls to see if they meet your needs.
0
 

Expert Comment

by:christina060897
ID: 1424250
We had the same question as you have now. And honestly we still don't have THE answer.

First of all. You say you know people who say it is possible to import JPEG pictures within a picture box in VB4.

Well, we have bad news. As far as we know - and we are a 100% sure of this - this is not possible without a third party custom control.

You were right: only BMP, ICO or WMF can be put into a picturebox in VB4.
That's one of the reasons we purchased VB5.
Vb5 can accept GIF and JPG format besides BMP etc.

But we are not very enthousiastic about it the way it is implemented. JPG pictures display very quickly in VB5. That is true. But it's the quality of the picture we don't like. It is apparently the lowest quality. And that is not enough for our purposes.

Now there are two ways to work further on this problem, maybe three:

1) working with a third-party custom control. There are a lot in the market, we have tested almost everyone and found out that the cheapiest (is that the right english word?) are not the best. The more expensive ones are the best, but give you much more than you are probably looking for.

2) Trying to write code ourselves using the code from the developers of JPEG, but then we need someone who knows C++ and is willing to write a dll or something like an acive-X control for VB users. We haven't found someone who is offering something like this.

3) Maybe it is possible to improve the quality in VB5 through code. We didn't heard of this possibility yet though.
So we deeply regret not to be able to answer your question, although.....
knowing that something is not possible with VB4 can be a relief. You can stop searching now and search elsewhere.

If you want to know  what we found out, we can send you our experience with several third party-controls or viewers, which can be "shelled" from within VB.

Good luck

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…
Learn how to use the remote presentation tool in Prezi to allow you to harness the power of this cloud based presentation platform. You can show your presentation with a remote audience using this free tool.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now