Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing Library

Status
Not open for further replies.

lloydie2

Programmer
Apr 21, 2003
75
GB
I am having a problem installing a library in delphi 2006. I am following the instructions below as best as possible but it does not seem to work. All is OK in D6.
Any ideas?
Instructions---------------------------
Firstly, make sure that the Diva component API is registered in your Delphi development system. See "DivaRegisterComponent.bat"
(in the SDK \basic\bin directory) for the command that does this.

1. Go to Project/Import Library in the Delhi IDE
2. Click "Add" and locate the DivaSDK.DLL (usually in \Windows\System32).
3. Make sure the box "Generate Component Wrapper" is ticked", and click Install

This does two things. Firstly, the type library "Diva SDK 1.0 Type Library (Version 1.0)" is now available for programs.
On the component toolbar (on the "ActiveX" tab) you will find four new icons that represent the four types of object
exported by the Diva Server Component API: DivaSystem; DivaDevice; DivaCall; DivaInstance. You can select these objects
and place them on the design form in the normal way. Secondly, the component wrapper "DIVASDKLib_TLB.pas" is generated and placed
in "\Program Files\Borland\Delphi7\Imports". This should be included (on the "uses" clause of a program) to give access to all the
methods and properties of the Diva SDK objects.
----------------------------------------------------
 
Code:
If you are installing this library for Delphi.NET then   
begin
   Ignore my comments. 
   Maybe someone else can help you
end
else If you are installing this pibrary for Delphi Win32 then
begin
  
  //Create a delphi package for Win32
  SelectMenu("File|New|Package - delphi Win32");

  //Save the package  
  Save("DivaPackage.bpl");

  //Do the following to create delphi wrappers for your 
  //Diva library 

  SelectMenu("Components|Import Component"); 

  TickOption("Import a Type Library");
  Click("Next");
 
  SelectFromList("Diva SDK 1.0 Type Library (Version 1.0)");
  Click("Next");

  SetPalettePage("Active X"); 
  Click("Next");

  TickOption("Add unit to DivaPackage.bpl");
  Click("Finish");
 
  CompileAndInstall("DivaPackage.bpl"); 

end

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top