Solved

Type Libraries Are They For Everyone

Posted on 1998-09-11
10
201 Views
Last Modified: 2010-04-30
I wrote an active-x control that works fine in VB.  I compile and port to my client machine.  The client upon access to the .ocx get an error accessing the type library.  How do I determine if I have a type library and if I do not how do I get one.  There are no properties exposed on the property sheet.  Is this causing a problem.  When is it appropriate to have a type library?
0
Comment
Question by:JodiC
  • 4
  • 4
  • 2
10 Comments
 

Expert Comment

by:gkaziberdov
ID: 1434406
Tell me more about the OCX. What libraries are you using within it?
0
 
LVL 1

Accepted Solution

by:
sirigere earned 100 total points
ID: 1434407
If you are not sure of what you are supposed to send to the client m/c. You send the client a setup program done using the setup wizard.let the client run the setup and install the ocx. If you want to know only the dependencies of your ocx then once again the same setup wizard can  be used to develop a dependency list.

If you still have a doubt let me know
0
 

Author Comment

by:JodiC
ID: 1434408
I did use the setup wizard to create a setup .exe.  It seemed to
work fine on the client machine.  I noticed that it did not
install and register the .ocx.  I did that manually.  The setup
does not work properly on the machine on which VB is installed
and the one on which I developed the .ocx. I get the following:

%% PLEASE DO NOT MODIFY OR DELETE THIS FILE! %%
 %% This file contains information about the installation of an application. %%
 %% It will be used to automatically remove all application components from your computer if you choose to do so. %%


NOTE: Beginning of the bootstrapper section

CONFIG: Title: "SigCapPrint"

ACTION: TempFile: "C:\WINDOWS\setup1.exe"
(File was not found or was an older version -- new file copied)

ACTION: RegKey: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "SharedDLLs"

*** ERROR: Failure writing to the system registry.  The registry may be corrupt, or you may not have the required permissions to write to the registry.
*** ERROR: (User Responded with 'OK')
*** DURING THIS ACTION: SharedFile: "C:\WINDOWS\SYSTEM\VB5StKit.dll"
*** (File currently on disk was already up to date)

Here is the dependancy file:

[Version]
Version=1.0.0.0

[MSVBVM50.DLL <0009>]
Register=$(DLLSelfRegister)
Dest=$(WinSysPathSysFile)
Date=7/19/1997
Time=15:55:40
Version=5.1.43.19
CABFilename=MSVBVM50.cab
CABDefaultURL=http://activex.microsoft.com/controls/vb5
CABINFFile=MSVBVM50.inf
CABRunFile=
Uses1=

[STDOLE2.TLB <0009>]
Register=$(TLBRegister)
Dest=$(WinSysPathSysFile)
Date=5/19/1997
Time=8:08:12
Version=2.20.4118.1
CABFilename=
CABDefaultURL=
CABINFFile=
CABRunFile=
Uses1=OleAut32.dll
Uses2=OlePro32.dll
Uses3=AsycFilt.dll
Uses4=

[OLEAUT32.DLL <0009>]
Register=$(DLLSelfRegister)
Dest=$(WinSysPathSysFile)
Date=5/19/1997
Time=8:08:12
Version=2.20.4118.1
CABFilename=
CABDefaultURL=
CABINFFile=
CABRunFile=
Uses1=

[OLEPRO32.DLL <0009>]
Register=$(DLLSelfRegister)
Dest=$(WinSysPathSysFile)
Date=5/19/1997
Time=8:08:12
Version=5.0.4118.1
CABFilename=
CABDefaultURL=
CABINFFile=
CABRunFile=
Uses1=

[ASYCFILT.DLL <0009>]
Register=
Dest=$(WinSysPathSysFile)
Date=5/19/1997
Time=8:08:10
Version=2.20.4118.1
CABFilename=AsycFilt.cab
CABDefaultURL=http://activex.microsoft.com/controls/vb5
CABINFFile=AsycFilt.inf
CABRunFile=
Uses1=

[CTL3D32.DLL <0009>]
Register=
Dest=$(WinSysPathSysFile)
Date=8/21/1996
Time=0:00:00
Version=2.31.0.0
CABFilename=
CABDefaultURL=
CABINFFile=
CABRunFile=
Uses1=

[COMCAT.DLL <0009>]
Register=$(DLLSelfRegister)
Dest=$(WinSysPathSysFile)
Date=10/31/1996
Time=0:00:00
Version=4.71.1441.1
CABFilename=
CABDefaultURL=
CABINFFile=
CABRunFile=
Uses1=

[COMDLG32.OCX <0009>]
Register=$(DLLSelfRegister)
Dest=$(WinSysPath)
Date=7/19/1997
Time=16:00:32
Version=5.1.43.19
CABFilename=ComDlg32.cab
CABDefaultURL=http://activex.microsoft.com/controls/vb5
CABINFFile=ComDlg32.inf
CABRunFile=
Uses1=ComCat.dll
Uses2=

[TLBINF32.DLL <0009>]
Register=
Dest=$(WinSysPath)
Date=1/16/1997
Time=2:17:48
Version=1.1.37.15
CABFilename=
CABDefaultURL=
CABINFFile=
CABRunFile=
Uses1=

[SETUPCTL.DLL <0009>]
Register=
Dest=$(WinSysPath)
Date=1/6/1998
Time=13:42:56
Version=1.1.0.6
CABFilename=
CABDefaultURL=
CABINFFile=
CABRunFile=
Uses1=

[INVSIGN.OCX <0009>]
Register=$(DLLSelfRegister)
Dest=$(WinSysPath)
Date=9/11/1998
Time=10:31:18
Version=1.0.0.0
CABFilename=; If you are going to compress this file into a Cabinet (.cab) file, you should add the name of that file here.
CABDefaultURL=; If you specified a CABFileName, then you can put URL location here, where Internet users can locate your Cabinet file for download.
CABINFFile=; If you specified a CABFileName that processes an INF file, you should put the name of the inf file contained in that Cabinet file, here.  This is ignored if a Run= key is also present
CABRunFile=; If you specified a CABFileName that processes an EXE file, you should put the name of the exe file contained in that Cabinet file, here.  This takes precedence over the InfFile= key
Uses1=MSVBVM50.dll
Uses2=StdOle2.tlb
Uses3=OleAut32.dll
Uses4=OlePro32.dll
Uses5=AsycFilt.dll
Uses6=Ctl3d32.dll
Uses7=ComCat.dll
Uses8=COMDLG32.OCX
Uses9=TLBINF32.DLL
Uses10=SETUPCTL.DLL
Uses11=MsStkPrp.dll
Uses12=

[MSSTKPRP.DLL <0009>]
Register=$(DLLSelfRegister)
Dest=$(WinSysPath)
Date=7/19/1997
Time=8:26:10
Version=5.1.43.19
CABFilename=MsStkPrp.cab
CABDefaultURL=http://activex.microsoft.com/controls/vb5
CABINFFile=MsStkPrp.inf
CABRunFile=
Uses1=

Any Ideas?










0
 
LVL 1

Expert Comment

by:sirigere
ID: 1434409
Is your client m/c a windowsNT . If yes logon as admin and try installing
reply back
0
 

Author Comment

by:JodiC
ID: 1434410
The development machine that fails on the setup is Windows 95.
The production app is run on Windows NT server.  Both machines
give me a type library error when I try to access the .ocx from
the client app, which happens to be Progress not VB.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Expert Comment

by:gkaziberdov
ID: 1434411
Are you logged in with Administrator account or equivalent on the NT Server when you are installing?
0
 

Author Comment

by:JodiC
ID: 1434412
Yes the account has full permissions.  
0
 

Author Comment

by:JodiC
ID: 1434413
I believe my problem has something to do with versioning.  I set
binary compatibility on and the control stopped giving me the
type library error.  However, when I ran my client app it caused
an irrecoverable error, invalid page fault.  The compile did
produce error pointing to a class and event that no longer exist.

I created a new project, copied the code, but I used the old
names.  The control compiles cleanly, but I am back to the
type library error when I try to access the .ocx in my client
app.  I don't know what all of this means as I am a newbie.

TIA
Jodi
0
 
LVL 1

Expert Comment

by:sirigere
ID: 1434414
Before compiling your client application create the dependency file for the control to shipped. Let at this point of time version compatibality be project compatible. then compile the client application and try installing your application. Let me know what happens.
 If possible send me the control to siriger@usa.net let me check it out.

0
 
LVL 1

Expert Comment

by:sirigere
ID: 1434415
please currect my email sirigere@usa.net
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

758 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

19 Experts available now in Live!

Get 1:1 Help Now