From: John Straumann on
Hello all:

A friend of mine just sent me a project they have had a lot of trouble
maintaining...typical custom app dev story, the original developer
disappeared, no documentation, etc., etc. and the project is in VB6.

I managed to pull VB 6 Enterprise off MSDN, but when I tried to load the
project I get errors on 2 DLLS:

crystl32.ocx and unrarocx,ocx.

I managed to find unrarocx.ocx, got it registered, and that message went
away.

However I am having issues with crystal32.ocx, and I am not sure if it is
because of the version or what. I have 2 versions of the OCX, one recent,
and one on the dev box I am using which seems to be from 1998. I tried to
register each of them but I still get the error message when I try to load
the project in VB...

"crystl32.ocx could not be loaded"

Does anyone have any ideas how I can fix this? I have never used VB at all
(went from C->Java->C#) so I have no idea. Do VB projects need to be in
certain directories? I.e. Does VB 6 have trouble with spaces in paths like
"My Documents"?

Thanks for any and all input.

John.


From: MikeD on

"John Straumann" <jstraumann(a)hotmail.com> wrote in message
news:C35B1590-DC28-4C9B-A77A-209582F241D5(a)microsoft.com...
> A friend of mine just sent me a project they have had a lot of trouble
> maintaining...typical custom app dev story, the original developer
> disappeared, no documentation, etc., etc. and the project is in VB6.
>
> I managed to pull VB 6 Enterprise off MSDN, but when I tried to load the
> project I get errors on 2 DLLS:
>
> crystl32.ocx and unrarocx,ocx.
>
> I managed to find unrarocx.ocx, got it registered, and that message went
> away.
>
> However I am having issues with crystal32.ocx, and I am not sure if it is
> because of the version or what. I have 2 versions of the OCX, one recent,
> and one on the dev box I am using which seems to be from 1998. I tried to
> register each of them but I still get the error message when I try to load
> the project in VB...
>
> "crystl32.ocx could not be loaded"
>
> Does anyone have any ideas how I can fix this? I have never used VB at all
> (went from C->Java->C#) so I have no idea.

> Do VB projects need to be in certain directories? I.e.

No, but if source files are not all in the same directory as the project
file (the VBP file), relative paths must be maintained.

> Does VB 6 have trouble with spaces in paths like "My Documents"?

No, at least no more so than any other programming language. IOW, long
paths, especially those that contain spaces, should be enclosed in quotation
marks.

Do you have Crystal Reports installed? This is most likely the problem. You
can't simply copy and register that OCX. There are LOTS of other files
required by Crystal Reports and I'm reasonably sure there is a design-time
license to use Crystal Reports.

--
Mike
Microsoft MVP Visual Basic


From: John Straumann on
Hi MikeD:

Thanks for the info. I did install Crystal and actually managed to track
down the correct OCX in the VB4 install files (again, thank goodness for
MSDN) and I can get the project loaded OK, but when I select "Run->Start
with Full Compile" I get an error on another OCX, the "DHTML Edit Control
for IE5". I don't understand this since I have it selected in the
references...

Are there other steps I need to take to make sure the right controls and
libraries are referenced?

John.



"MikeD" <nobody(a)nowhere.edu> wrote in message
news:uXwVcp60IHA.4164(a)TK2MSFTNGP03.phx.gbl...
>
> "John Straumann" <jstraumann(a)hotmail.com> wrote in message
> news:C35B1590-DC28-4C9B-A77A-209582F241D5(a)microsoft.com...
>> A friend of mine just sent me a project they have had a lot of trouble
>> maintaining...typical custom app dev story, the original developer
>> disappeared, no documentation, etc., etc. and the project is in VB6.
>>
>> I managed to pull VB 6 Enterprise off MSDN, but when I tried to load the
>> project I get errors on 2 DLLS:
>>
>> crystl32.ocx and unrarocx,ocx.
>>
>> I managed to find unrarocx.ocx, got it registered, and that message went
>> away.
>>
>> However I am having issues with crystal32.ocx, and I am not sure if it is
>> because of the version or what. I have 2 versions of the OCX, one recent,
>> and one on the dev box I am using which seems to be from 1998. I tried to
>> register each of them but I still get the error message when I try to
>> load the project in VB...
>>
>> "crystl32.ocx could not be loaded"
>>
>> Does anyone have any ideas how I can fix this? I have never used VB at
>> all (went from C->Java->C#) so I have no idea.
>
>> Do VB projects need to be in certain directories? I.e.
>
> No, but if source files are not all in the same directory as the project
> file (the VBP file), relative paths must be maintained.
>
>> Does VB 6 have trouble with spaces in paths like "My Documents"?
>
> No, at least no more so than any other programming language. IOW, long
> paths, especially those that contain spaces, should be enclosed in
> quotation marks.
>
> Do you have Crystal Reports installed? This is most likely the problem.
> You can't simply copy and register that OCX. There are LOTS of other files
> required by Crystal Reports and I'm reasonably sure there is a design-time
> license to use Crystal Reports.
>
> --
> Mike
> Microsoft MVP Visual Basic
>
>
From: Bob O`Bob on
John Straumann wrote:
> Hi MikeD:
>
> Thanks for the info. I did install Crystal and actually managed to track
> down the correct OCX in the VB4 install files (again, thank goodness for
> MSDN) and I can get the project loaded OK, but when I select "Run->Start
> with Full Compile" I get an error on another OCX, the "DHTML Edit
> Control for IE5". I don't understand this since I have it selected in
> the references...
>
> Are there other steps I need to take to make sure the right controls and
> libraries are referenced?


Unfortunately, they are ... steps.
You pretty much have to deal with them as you encounter them.
Bringing old software to life is one thing, bringing it up to date
is another. Trying to run before you can crawl is usually not a
good idea.

What actual error are you getting on this DHTML thing?
It is, of course, nearly certain you will eventually want to update
that reference to something newer, but it might be best to install IE5
for now, just to get going. In order to do that, though, you might
have to be working on Win2000, I am really not sure.




Bob
--