[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Ice Foot

4/13/2012 1:07:00 AM

Hi all,
Haven't been around these parts for a loooonnngg time. Good to see
you're still here. Hard drive crashed so had to get new(used) computer.
Have to start from ground up getting everything reinstalled. This box
has win7(32 bit) so now have to learn that jazz. Tried regsvr32 on
winu.tlb and got error about tlb might not be compatible. I know it's
32bit and so is this box so what am I doing wrong?
regsvr32 "C:\0\0CODE\Vb\TypeLibs\winu.tlb"
or maybe i forgot how to register a typelib?
41 Answers

ralph

4/13/2012 2:35:00 AM

0

On Thu, 12 Apr 2012 20:07:29 -0500, mp <nospam@thanks.com> wrote:

>Hi all,
>Haven't been around these parts for a loooonnngg time. Good to see
>you're still here. Hard drive crashed so had to get new(used) computer.
>Have to start from ground up getting everything reinstalled. This box
>has win7(32 bit) so now have to learn that jazz. Tried regsvr32 on
>winu.tlb and got error about tlb might not be compatible. I know it's
>32bit and so is this box so what am I doing wrong?
>regsvr32 "C:\0\0CODE\Vb\TypeLibs\winu.tlb"
>or maybe i forgot how to register a typelib?

The latter. <g>

You use regtlib.exe to register type libraries.

-ralph

ralph

4/13/2012 3:39:00 AM

0

On Thu, 12 Apr 2012 21:34:33 -0500, ralph <nt_consulting64@yahoo.net>
wrote:

>On Thu, 12 Apr 2012 20:07:29 -0500, mp <nospam@thanks.com> wrote:
>
>>Hi all,
>>Haven't been around these parts for a loooonnngg time. Good to see
>>you're still here. Hard drive crashed so had to get new(used) computer.
>>Have to start from ground up getting everything reinstalled. This box
>>has win7(32 bit) so now have to learn that jazz. Tried regsvr32 on
>>winu.tlb and got error about tlb might not be compatible. I know it's
>>32bit and so is this box so what am I doing wrong?
>>regsvr32 "C:\0\0CODE\Vb\TypeLibs\winu.tlb"
>>or maybe i forgot how to register a typelib?
>
>The latter. <g>
>
>You use regtlib.exe to register type libraries.
>

Should probably add: If you have a clean Windows 7 platform and
depending on development platforms installed, you might not have
regtlib.exe available. I know it shipped with Visual Studio 6, not
sure about all the VB-only versions. One of the McKinney Hardcore
downloads includes it.

You can also use Regtlibv12.exe from the .Net Framework. Believe that
may be installed.

[Sorry to be so vague. But I never work with a platform from 'scratch'
- by the time I get to fooling around and customizing them, I have so
much crap installed I'm never sure what came from where. <g>]

-ralph
[If worse comes to worse you can always register a type library using
a semi-manual process via the RegisterTypeLib function. But
Ghod-forbid you have to go there. <bg>]

Mayayana

4/13/2012 12:38:00 PM

0

| Should probably add: If you have a clean Windows 7 platform and
| depending on development platforms installed, you might not have
| regtlib.exe available. I know it shipped with Visual Studio 6, not
| sure about all the VB-only versions. One of the McKinney Hardcore
| downloads includes it.
|
| You can also use Regtlibv12.exe from the .Net Framework. Believe that
| may be installed.
|

I was under the impression that VB would do it automatically.
If I browse for a .TLB file from the References window it gets
permanently added to the list, which seems to imply that it's
been registered.


MikeD

4/13/2012 12:46:00 PM

0



"ralph" <nt_consulting64@yahoo.net> wrote in message
news:it6fo71dc56lftht4ec3m9hm9sri86oetd@4ax.com...
> On Thu, 12 Apr 2012 21:34:33 -0500, ralph <nt_consulting64@yahoo.net>
> wrote:
>
>>On Thu, 12 Apr 2012 20:07:29 -0500, mp <nospam@thanks.com> wrote:
>>
>>>Hi all,
>>>Haven't been around these parts for a loooonnngg time. Good to see
>>>you're still here. Hard drive crashed so had to get new(used) computer.
>>>Have to start from ground up getting everything reinstalled. This box
>>>has win7(32 bit) so now have to learn that jazz. Tried regsvr32 on
>>>winu.tlb and got error about tlb might not be compatible. I know it's
>>>32bit and so is this box so what am I doing wrong?
>>>regsvr32 "C:\0\0CODE\Vb\TypeLibs\winu.tlb"
>>>or maybe i forgot how to register a typelib?
>>
>>The latter. <g>
>>
>>You use regtlib.exe to register type libraries.
>>
>
> Should probably add: If you have a clean Windows 7 platform and
> depending on development platforms installed, you might not have
> regtlib.exe available. I know it shipped with Visual Studio 6, not
> sure about all the VB-only versions. One of the McKinney Hardcore
> downloads includes it.
>
> You can also use Regtlibv12.exe from the .Net Framework. Believe that
> may be installed.
>
> [Sorry to be so vague. But I never work with a platform from 'scratch'
> - by the time I get to fooling around and customizing them, I have so
> much crap installed I'm never sure what came from where. <g>]
>
> -ralph
> [If worse comes to worse you can always register a type library using
> a semi-manual process via the RegisterTypeLib function. But
> Ghod-forbid you have to go there. <bg>]

You forgot probably the simplest method. Let VB register it. Just browse to
the .tlb file from VB's References dialog box. Of course, this assumes VB6
is installed.

Another option, just for completeness, is to use the CCRP registration
utility, still downloadable from here:
http://ccrp.mvps.org/download/coo...
Only caveat with it is that it's written with VB5 and so will most likely
require that you install the VB5 runtime, but it does still work fine under
Win7, both 32 bit and 64 bit.

Mike



ralph

4/13/2012 2:41:00 PM

0

On Fri, 13 Apr 2012 08:45:35 -0400, "MikeD" <nobody@nowhere.edu>
wrote:


>
>You forgot probably the simplest method. Let VB register it. Just browse to
>the .tlb file from VB's References dialog box. Of course, this assumes VB6
>is installed.
>

lol, you are both right.

I never thought of it. I always build type libraries using the same
old batch compile/register utility I've used for twenty years. <g>

-ralph

Ice Foot

4/13/2012 3:44:00 PM

0

On 4/13/2012 9:41 AM, ralph wrote:
> On Fri, 13 Apr 2012 08:45:35 -0400, "MikeD"<nobody@nowhere.edu>
> wrote:
>
>
>>
>> You forgot probably the simplest method. Let VB register it. Just browse to
>> the .tlb file from VB's References dialog box. Of course, this assumes VB6
>> is installed.
>>
>
> lol, you are both right.
>
> I never thought of it. I always build type libraries using the same
> old batch compile/register utility I've used for twenty years.<g>
>
> -ralph

thanks to all for your responses. I did search for regtlb.exe and it's
not there, also tried an old typelib reg function (don't remember if it
was the cctb one) it cried about vb5 not being installed. gotta install
vb6 again I guess, that should get me going.
mark

ralph

4/13/2012 4:15:00 PM

0

On Fri, 13 Apr 2012 10:44:22 -0500, mp <nospam@thanks.com> wrote:

>On 4/13/2012 9:41 AM, ralph wrote:
>> On Fri, 13 Apr 2012 08:45:35 -0400, "MikeD"<nobody@nowhere.edu>
>> wrote:
>>
>>
>>>
>>> You forgot probably the simplest method. Let VB register it. Just browse to
>>> the .tlb file from VB's References dialog box. Of course, this assumes VB6
>>> is installed.
>>>
>>
>> lol, you are both right.
>>
>> I never thought of it. I always build type libraries using the same
>> old batch compile/register utility I've used for twenty years.<g>
>>
>> -ralph
>
>thanks to all for your responses. I did search for regtlb.exe and it's
>not there, also tried an old typelib reg function (don't remember if it
>was the cctb one) it cried about vb5 not being installed. gotta install
>vb6 again I guess, that should get me going.
>mark

I wouldn't think re-installing VB6 would have anything to do with a
registering type libraries problem. (But then I'm often wrong. <g>)

Did you try as the others suggested - simply creating a project
reference to the library?

Did you try the RegTlb.exe utility supplied with McKinney's Hardcore
download - HardCore3.zip?
http://vb.mvps.org/hardweb/mcki...

-ralph

Ice Foot

4/13/2012 10:02:00 PM

0

On 4/13/2012 11:14 AM, ralph wrote:
> On Fri, 13 Apr 2012 10:44:22 -0500, mp<nospam@thanks.com> wrote:
>
>> On 4/13/2012 9:41 AM, ralph wrote:
>>> On Fri, 13 Apr 2012 08:45:35 -0400, "MikeD"<nobody@nowhere.edu>
>>> wrote:
>>>
>>>
>>>>
>>>> You forgot probably the simplest method. Let VB register it. Just browse to
>>>> the .tlb file from VB's References dialog box. Of course, this assumes VB6
>>>> is installed.
>>>>
>>>
>>> lol, you are both right.
>>>
>>> I never thought of it. I always build type libraries using the same
>>> old batch compile/register utility I've used for twenty years.<g>
>>>
>>> -ralph
>>
>> thanks to all for your responses. I did search for regtlb.exe and it's
>> not there, also tried an old typelib reg function (don't remember if it
>> was the cctb one) it cried about vb5 not being installed. gotta install
>> vb6 again I guess, that should get me going.
>> mark
>
> I wouldn't think re-installing VB6 would have anything to do with a
> registering type libraries problem. (But then I'm often wrong.<g>)
>
> Did you try as the others suggested - simply creating a project
> reference to the library?
>
> Did you try the RegTlb.exe utility supplied with McKinney's Hardcore
> download - HardCore3.zip?
> http://vb.mvps.org/hardweb/mcki...
>
> -ralph

Hi Ralph,
I didn't say re-install, I said install... LOL ... haven't put it on the
new box yet. doing that now... it's an old vs6 ent that i had from
years back...it says known compatibility issues with this version of
windoze.... am I going to blow up the computer by installing?

(ps i was just trying to run an old vba program in excel that I had when
i realized i needed to reinstall the typelibs etc...that's why i wasn't
working in vb6 yet - haven't been coding for quite a while, sadly)

mark

Ice Foot

4/13/2012 10:04:00 PM

0

On 4/13/2012 5:02 PM, mp wrote:
> On 4/13/2012 11:14 AM, ralph wrote:
>> On Fri, 13 Apr 2012 10:44:22 -0500, mp<nospam@thanks.com> wrote:
>>
>>> On 4/13/2012 9:41 AM, ralph wrote:
>>>> On Fri, 13 Apr 2012 08:45:35 -0400, "MikeD"<nobody@nowhere.edu>
>>>> wrote:
>>>>
>>>>
>>>>>
>>>>> You forgot probably the simplest method. Let VB register it. Just
>>>>> browse to
>>>>> the .tlb file from VB's References dialog box. Of course, this
>>>>> assumes VB6
>>>>> is installed.
>>>>>
>>>>
>>>> lol, you are both right.
>>>>
>>>> I never thought of it. I always build type libraries using the same
>>>> old batch compile/register utility I've used for twenty years.<g>
>>>>
>>>> -ralph
>>>
>>> thanks to all for your responses. I did search for regtlb.exe and it's
>>> not there, also tried an old typelib reg function (don't remember if it
>>> was the cctb one) it cried about vb5 not being installed. gotta install
>>> vb6 again I guess, that should get me going.
>>> mark
>>
>> I wouldn't think re-installing VB6 would have anything to do with a
>> registering type libraries problem. (But then I'm often wrong.<g>)
>>
>> Did you try as the others suggested - simply creating a project
>> reference to the library?
>>
>> Did you try the RegTlb.exe utility supplied with McKinney's Hardcore
>> download - HardCore3.zip?
>> http://vb.mvps.org/hardweb/mcki...
>>
>> -ralph
>
> Hi Ralph,
> I didn't say re-install, I said install... LOL ... haven't put it on the
> new box yet. doing that now... it's an old vs6 ent that i had from years
> back...it says known compatibility issues with this version of
> windoze.... am I going to blow up the computer by installing?
>
> (ps i was just trying to run an old vba program in excel that I had when
> i realized i needed to reinstall the typelibs etc...that's why i wasn't
> working in vb6 yet - haven't been coding for quite a while, sadly)
>
> mark
>

oh i see, I said "install vb6 again" that does sound like re-install I
get it now! I just meant install vb6 on this box...like i had on the old
laptop :-) .... ain't language grand :-)

Karl E. Peterson

4/13/2012 10:21:00 PM

0

It happens that mp formulated :
> doing that now... it's an old vs6 ent that i had from years
> back...it says known compatibility issues with this version of windoze.... am
> I going to blow up the computer by installing?

That's just MS Marketing at work. <g>

Sometimes, you need to create a 0-byte file called msjava.dll (if it
doesn't already exist) in /windows/system32 (or syswow64) to trick the
install into proceeding.

Also, be sure to run VB6 itself "as administrator" or all registration
tasks will fail.

--
..NET: It's About Trust!
http://vfre...