Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Greetings to everybody.

I have to register a new recently acquired dll in and old PC with windows 7, 64 bits operating system.

I access the MS Dos prompt as administrator and run the following instruction:

regsvr32 c:\windows\syswow64\ProductosTemporales.tlb

and then I get the message (more or less; it´s in spanish) "Is possible the module .... is not compatible with the current version running; check if the module is compatible with a 32 or 64 regsvr32.exe"

I'm aware there are thousands of supporting pages in the internet, and I had search a lot thru google, but all the answers and procedures I´ve found up to this point had been useless; my problem still remains. Everything I had tried failed.

Can anybody give me some hints ? Is it possible the PC could be damaged ?

What I have tried:

Spent almost two days searching thru internet, but I just can´t find an answer
Posted
Updated 9-Jan-18 20:15pm
Comments
Dave Kreskowiak 9-Jan-18 19:23pm    
You don't run REGSVR32 against a .TLB file. You do it on a .DLL file.
Miguel Altamirano Morales 10-Jan-18 11:37am    
Thanks a lot for your reply, Dave. I´m glad to get in touch with you again.

The reason I want to register that .tlb file was because I did see it in the windows register of another PC, running the system at production level; In my PC, working in a testing area, I was receiving a VBA error telling me that this particular activex cannot create an object at runtime.

In my regedit I saw this activex was not registered so my first attempt to fix this was to register it using regsvr32, but now I know you can´t do that with those files, so I used regtlivb12 and it just worked fine.

But even that, this old Access 2010 application I'm working with, continues sending me the same error when I try to assign a value to one property of this library.

Well, so I suppose now it's a code error or anything apart from a windows registration, but I think it should be a matter of another question.

1 solution

Quote:
TLB is a file extension for Object Linking and Embedding (OLE) type library file format used by Microsoft Visual C++ software development program, part of Microsoft's ActiveX technologies.

What is TLB? What Opens a TLB? File Format List from WhatIs.com[^]

You don't register legacy controls with Regsvr32: you need regtlibv12.
See here: regasm - How to register a legacy typelib (.tlb) on Windows 7? - Stack Overflow[^]
 
Share this answer
 
Comments
Miguel Altamirano Morales 10-Jan-18 11:38am    
Thank you very much for your answer my friend. I already achieved what I want.
OriginalGriff 10-Jan-18 11:50am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900