⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usage.htm

📁 Delphi7官方文档-英文 对于英文好的delphi程序员来说 这个是你的至宝!
💻 HTM
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<HTML>
<HEAD>
   <META NAME="HPP" CONTENT="V=2.1 L=B ECP=1004 DCP=850 LID=1-86">
   <TITLE>Inprise Delphi CORBA Support - Useage</TITLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000C0" VLINK="#AE00AE" ALINK="#FF007F">
<BASEFONT SIZE=3> 
<h1>Usage</h1>
<p>The IDL-to-Delphi compiler is integrated into the Delphi IDE via a Wizard (File 
  | New | Other). It is also a separate utility program that can be run from the 
  command line. The compiler is written in Java and requires a JDK (Java Development 
  Kit) or JRE (Java Runtime Environment) in order to run. A suitable JRE is supplied 
  as part of Delphi. </p>
<p>The compiler is distributed as a JAR file (idl2pas.jar) which contains all 
  of the required java classes. A batch file is also provided (idl2pas.bat) and 
  can be used to run the the compiler as described below. </p>
<p>The Run time Library is supplied as a Windows DLL file. This provides a Delphi 
  interface to the VisiBroker C++ ORB DLL which allows Delphi to use the standard 
  VisiBroker ORB as if it were a native Delphi ORB. </p>
<h2 ALIGN=left> <b>Compiling IDL files from the Command Line</b></h2>
<p>To use the idl2pas compiler on the command line, type the following: </p>
<BLOCKQUOTE> idl2pas [options] [filename.idl ...] </BLOCKQUOTE>
This will run the idl2pas.bat batch file which will in turn launch the Java virtual 
machine which loads the idl2pas.jar file and launches the compiler. The compiler 
processes the specified IDL file(s) and outputs one or more generated Delphi files. 
<P ALIGN=JUSTIFY>The compiler generates a Delphi 'I' file, a Delphi 'C' file, 
  a Delphi 'S' file, and a Delphi 'Impl' for each IDL module it encounters. The 
  generated files are named for the modules from which they originate. (e.g. IDL 
  module MyMod would result in generated files MyMod_i.pas, MyMod_c.pas, MyMod_s.pas, 
  and MyMod_Impl.pas). If no module is specified the compiler creates files named 
  for the IDL file. (eg; IDL file test.idl would result in generated files test_i.pas, 
  test_c.pas, test_s.pas and test_Impl.pas if it did not contain a module.) Nested 
  modules are placed in separate files with concatenated file names. 
<P ALIGN=JUSTIFY>Under certain circumstances the compiler may generate empty Delphi 
  units. These units are redundant. By default the compiler does not write files 
  for empty units. Use the -[no_]write_empty_units compiler option to control 
  this behavior. 
<P ALIGN=JUSTIFY>The 'I' file contains the interface information and the 'C' file 
  contains the client side stub code. The 'S' file contains the skeleton code 
  and the 'Impl' file is a template that you fill in for your server's implementation 
  code. 
<P ALIGN=JUSTIFY>The examples show how to make console and GUI client DPR files 
  that uses these generated files. More details concerning the mapping of IDL 
  to Delphi can be found in chapter two of the <a href="idl2pas.pdf">VisiBroker 
  for Delphi</a> manual. 
<P ALIGN=JUSTIFY>When compiling very large IDL files you may encounter Java heap 
  overflow errors. These can be avoided by increasing the size of the heap allocated 
  by the Java Virtual Machine by modifying the line in the idl2pas.bat file to 
  include the -mx option; 
<BLOCKQUOTE> jre -mx40000000 com.inprise.vbroker.compiler.tools.idl2pas %1 ... 
  %9 </BLOCKQUOTE>
This option sets the heap size to the specified number of bytes. Note: If you are using 
VisiBroker 4, you have to have JDK 1.2.2 or higher.  The command line would use "java" 
instead of "jre".
<h2 ALIGN=left> <b>Obtaining the version number </b></h2>
<P ALIGN=JUSTIFY>If you want to display the version number for the IDL2PAS compiler, 
  type: 
<BLOCKQUOTE> idl2pas -version </BLOCKQUOTE>
<h2 ALIGN=left> <b>Other command line switches </b></h2>
<P ALIGN=JUSTIFY>The compiler will print a list of switches if launched with no 
  parameters. Most are supported but the &quot;Driver Options&quot; should be 
  ignored. Supported for these is pending incorporation of the compiler into the 
  IDE. 
<P ALIGN=JUSTIFY>More details on the use of the compiler and runtime can be found 
  in chapter one of the <a href="idl2pas.pdf">VisiBroker for Delphi</a> manual. 
<P ALIGN=CENTER> 
<P ALIGN=LEFT> 
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -