MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Instrukcja Użytkownika Strona 24

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 44
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 23
24 CHAPTER 30 Extending ColdFusion with CFX
Listing 30.4 (continued)
<cfoutput query=”FilmsMetaData”>
<p>
<strong>Column: #COLUMN_NAME#</strong>
<br>
Data Type: #TYPE_NAME#<br>
<cfif TYPE_NAME contains “char”>
Maximum Length: #COLUMN_SIZE#<br>
</cfif>
</cfoutput>
</cfif>
</body>
</html>
Writing CFX Tags with Visual C++
The first part of this chapter introduced you to the various methods that make up the CFX API.
The second part showed you how to work with the methods in Java code.
NOTE
The specific instructions and figures in this chapter assume that you are using version 6.0 of Visual C++. If you are using a different
version of the product, some of the steps and screens may look slightly different.
NOTE
Technically, you can use the CFX API for C++ to create CFX tags in other languages and development environments. For instance, it
is possible to create CFX tags using Borland’s Delphi product; you can find information about this on the Web. That said, Java and
C++ are the only languages that the API is officially designed for.
Getting Started
The next few pages will walk you through the process of creating a new tag with the C++ version of
the CFX API. The basic steps are similar to the steps you follow when creating a tag with Java:
1. Writing the C++ code in Visual C++
2. Compiling the C++ code into the corresponding .dll file
3. Registering the new CFX tag in the ColdFusion Administrator
Installing the Tag Wizard and Libraries
The best way to start a new CFX tag is with the ColdFusion Tag Wizard, which is a simple tool that
plugs into the New Project dialog in Visual C++. The wizard is not distributed with ColdFusion,
but is freely available from the Macromedia Web site. It is also included with this chapter’s listings
for your convenience.
Przeglądanie stron 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 43 44

Komentarze do niniejszej Instrukcji

Brak uwag