• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 25. Integrating with .NET > A Real-World Example

A Real-World Example

The C# example presented in this section generates an image of a bar code for use within a Web page when given a series of parameters. It is not the job of this assembly to manage the existence of the files it creates (.png files). That task is better left to the consuming application (ColdFusion).

Only a few steps are needed to have a .NET component ready to be consumed directly from ColdFusion. First, the code must be written. Second, the assembly must be signed with a strong name and compiled. We generate a strong name key and associate it with the assembly by using the command-line utility sn.exe. After compiling, we add our assembly to the Global Assembly Cache (GAC), where it is cached and ready to be called by a COM client. As a final point, in order to be visible to COM clients, the assembly must be registered as a COM component. The .NET utility regasm.exe is employed to fulfill this task.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint