[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Trouble registering OCX and DLL files in Win95

Posted on 2009-12-20
27
Medium Priority
?
1,646 Views
Last Modified: 2013-12-29
Error msg 0x00000485 while attempting to register ocx and dll files.  Both files have been successfully copied to the Windows/System folder.  The files are: ccrpDtp.ocx and prjRadioProgrammer.dll. Both are part of a Midland mobile radio programming program.
0
Comment
Question by:ACLSman
  • 16
  • 11
27 Comments
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26107847
hi there;

Did you register the dll?

regsvr32 /u prjRadioProgrammer.dll for uninstalling the file.
regsvr32 prjRadioProgrammer.dll for installing the file.

Best regards.
0
 

Author Comment

by:ACLSman
ID: 26108980
Yes, but the registration fails. "Last error returns" 0x00000485
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26109231
Let's get into the registry and do a search for all instances for the files and the remove the registry entries. Remember to backup the registry first.

Did you add your binaries to your PATH environment variable? If so, remove it, re-register those, and if not add it and again re-register those.

Best regards.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ACLSman
ID: 26109897
Okay, have backed-up the registry, and removed all references to either ccrpDtp.ocx or prjRadioProgrammer.dll using regedit.
I am uneducated and unaware of how to 'add binaries to the PATH environment varible.' or for that matter how to remove them or re-register them.
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26110526
right click on mycomputer->Properties
Select Advanced Tab
Click environment variables and at system variable find out your bin path of the program, if exists. If not, you will add them. It's better to use System Variables section and click Path.

There must be some setting as seperated with ";" char, just add your path with ";" in the end.
blabalbalbla;asdfasd;asdfasd
Then a reboot, then regsrv of both dll and ocx

regsvr32 prjRadioProgrammer.dll and the other file.

Best regards.
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26110528
the screenshot is as follow:
untitled.JPG
0
 

Author Comment

by:ACLSman
ID: 26110734
I'm sorry.  When I right-click MyComputer, although I DO bring up a System Properties page, there no 'advanced' tab in Windows 95.
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26110864
Ah sorry.

In Windows 95, have a backup of autoexec.bat then, append these lines to the end of your c:\autoexec.bat using notepad, and then reboot your computer:

The lines cygwin are trivial, you are going to add your binaries there;

set PATH=.;d:\cygwin\bin;d:\cygwin\usr\bin;d:\cygwin\usr\local\bin;D:\cygwin\usr\X11R6\bin;d:\gs\gs8.00\bin;d:\gs\gs8.00\lib;%PATH%

so you should do stg like:
set PATH=.;c:\yourpath\to\binaries;%PATH%

If the binaries are in D:\

set HOME=d:\home
set DISPLAY=localhost:0
set PATH=.;d:\cygwin\bin;d:\cygwin\usr\bin;d:\cygwin\usr\local\bin;D:\cygwin\usr\X11R6\bin;d:\gs\gs8.00\bin;d:\gs\gs8.00\lib;%PATH%

Best regards.
0
 

Author Comment

by:ACLSman
ID: 26112855
You DON'T ever need to apologize.  What you are doing is so far-and-above beyond what I am able to do, that if ANYONE finds fault with your effort, they will have me to answer to.
You mention that IF the 'binaries' are in D:\ .  I assume then that they must be on one (or the other) of two CD's. The original installation CD for the Midland program or the CD onto which I burned the two files that we are trying to register.
If that's the case, I would imagine that when I reboot, after appending the autoexec.bat, that the CD, (whichever one you indicated,) would have to be in place in drive D:\
OR
Is it that the binaries are in the two files that we are trying to register?  If that's the case, I have copied these files to c:\windows\system, and the PATH would be c:\windows\system
Once again, let me compliment you for your patience with me.  I know that my questions/comments must be sophomoric, but you have never made me feel 'dumb.'  That is an art.  One that as an educator I understand.
0
 

Author Comment

by:ACLSman
ID: 26113060
This is exactly what I have appended to the autoexec

set PATH=.;c:\windows\system;%PATH%
set HOME=c:\home
set DISPLAY=localhost:0
set PATH=c:\cygwin\bin;c:\cygwin\usr\bin;c:\cygwin\usr\local\bin;c:\cygwin\usr\X11R6\bin;c:\gs\gs8.00\bin;c:\gs\gs8.00\lib;%PATH%
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26113570
>>You DON'T ever need to apologize.  What you are doing is so far-and-above beyond what I am able >>to do, that if ANYONE finds fault with your effort, they will have me to answer to.
>>You mention that IF the 'binaries' are in D:\ .  I assume then that they must be on one (or the other) of >>two CD's. The original installation CD for the Midland program or the CD onto which I burned the two >>files that we are trying to register.
>>If that's the case, I would imagine that when I reboot, after appending the autoexec.bat, that the CD, >>(whichever one you indicated,) would have to be in place in drive D:\

Yes, but I don't recommend it. Since maybe your CD driver is some USB driver and if you change its letter, then PATH variable will give an error when you boot machine.

>>Is it that the binaries are in the two files that we are trying to register?  If that's the case, I have >>copied these files to c:\windows\system, and the PATH would be c:\windows\system
>>Once again, let me compliment you for your patience with me.  I know that my questions/comments >>must be sophomoric, but you have never made me feel 'dumb.'  That is an art.  One that as an >>educator I understand.

Thanks for the compliments.:) I am just a humble educator just as you.:)

>>The original installation CD for the Midland program or the CD onto which I burned the two files that >>we are trying to register.
<pro>
Are there any bin folder regarding your CD? If so, it's better to copy the binaries to your
c:\windows\system
</pro>

>>This is exactly what I have appended to the autoexec
no..no..cygwin is just an example. Your path variable surely different than my above PATH variable.

Let's not apply PATH variable stuff yet and first apply the way in pro tags above. Then again, if it fails, apply below:

set HOME=c:\home
set DISPLAY=localhost:0
set PATH=;c:\windows\system;%PATH%

Best regards.
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26113653
Let me give some brief explanation regarding environment variables:

Environment Variables are stored in a small area of memory available to all programs running within or on top of the DOS environment (including Windows). They are called variables because they can be changed as you can see, but cygwin is a dummy variable in this case, as you know cygwin is some kind of implementation of Unix running under Windows without a glitch, since it is not a virtualization, it doesn't consume much resource, and a nice way to have SSH server in your Windows which Windows doesn't have. In fact, some variables need to be reestablished after every reboot that's the reason why we are appending to autoexec since it's loaded each and every boot.

The following registry key is loaded for each boot of your machine, you can check for the key.
Registry key HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Control\ Session Manager\ Environment

Variable names are NOT case sensitive within Windows unlike UNIX, LINUX AND MAC
MAC environment variables reside in ~/.MacOSX/environment.plist in xml format.
LINUX/UNIX systems set PATH using the system shell initialistation files, such as /etc/profile for Bourne shells. For example, a Linux box could set the PATH at login, then add /usr/X11R6/bin to the path using /etc/profile, then add /home/ambler/bin to the path using ~/.bash_profile.

In UNIX, the system boot scripts also set PATH. For example, PATH=/bin:/sbin:/usr/bin:/usr/sbin:/home/ACLSman/bin

Best regards.
0
 

Author Comment

by:ACLSman
ID: 26113918
I'm Sorry, jazz.
I am so confused right now.
I'm going to remove the lines that I appended to autoexec.bat
Then,...
Can we start over?
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26118051
:)
ok. no problem.
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26118069
Copy the ocx and dll to system folder.

Are there any bin folder regarding your CD? If so, it's better to copy the binaries to your
c:\windows\system

have you autoexec as:
set HOME=c:\home
set DISPLAY=localhost:0
set PATH=;c:\windows\system;%PATH%

reboot

regsvr32 /u prjRadioProgrammer.dll
regsvr32 /u ccrpDtp.ocx
reboot
If above 2 commands fail, then it's not registered yet, no problem, apply the following no matter the result is:

regsvr32 prjRadioProgrammer.dll
regsvr32 ccrpDtp.ocx
reboot
cross your fingers

Best regards.
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26118074
>>Are there any bin folder regarding your CD?
If you cannot figure out, google "tree size" and download it, and run it for the CD in your CD-ROM drive and post the hierarchy for it.

Best regards.
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26118529
the folder name doesn't have to "bin" exactly, a folder having binaries in it is what we are searching for
0
 

Author Comment

by:ACLSman
ID: 26120318
I will re-post after the Christmas holiday.   Just to prepare you...  the two files failed to register DUH!  ;)
and I'm not sure that I understand what a BINARY is, but with some searching I'm sure that I can teach myself. Have a Great Holiday and don't worry about this stuff for the next couple of days.
Best Wishes,
Charlie
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26120491
Greetings from Turkey:)
0
 

Author Comment

by:ACLSman
ID: 26135625
Hello, my friend
| hope your holiday was as enjoyable as mine.
Just to bring this all back up to speed, the regsvr32 function is still not working for the two files ccrpDtp.ocx and prjRadioProgrammer.dll.
Before the holiday, you had asked if there were any bin folders regarding my CD, and that the 'tree size' download might help me identify those files.  Unfortunately, the computer being serviced does not have Internet access, and although I downloaded to another computer, I was unable to successfully transfer the set-up program (for tree size) the the windows 95 computer.
Finally you mention that we are searching for a file having 'binaries' in it.  Try as I might, I was unable to educate myself regarding 'binaries,' and still am clueless in this regard.
I thoroughly appreciate your knowledge level, and ask you to have patients with me.

0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26199064
Ok, could you upload the necessary files somewhere in net (I guess it's not that big in size) so that I can replicate your problem here in my virtual machine of 95.

Best regards.
0
 

Author Comment

by:ACLSman
ID: 26200386
No, I don't think so.  As I mentioned, the computer does not have Internet access, and I do not have the necessary interface cables to temporarily hook-it-up.
I was thinking that maybe the 'solution' to this problem might be for me to take the laptop computer and the program that I'm trying to install, to a local computer shop, and ask them to install the program for me.
0
 
LVL 12

Accepted Solution

by:
jazzIIIlove earned 2000 total points
ID: 26273859
it could be helpfful, maybe, it's also a good idea to have the print out of this page.

Best regards.
0
 

Author Closing Comment

by:ACLSman
ID: 31668409
This expert was absolutely the most knowledgeable individual that I have EVER encountered.  He also exhibited an unusual level of patience with me, leading me step-by-step when necessasry
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26278741
No problem...
>>the most knowledgeable
Well, in fact, I still stuck on some issues, yet, I am trying to do my best:)
0
 

Author Comment

by:ACLSman
ID: 26280089
Thanks "jazz." It's because of you, that I will maintain at least a 0ne-Year subscription.  It's been a pleasure knowing you
Regards,
Charlie
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 26384448
nice knowing you too;)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

831 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