` Printed Icetips Article

Icetips Article



Par2: Icon and Image only DLL
1999-04-27 -- Jim DeFabia
 
* Create a new project
==================
1. Select File > New > Project.
2. Give it a name (let's call it " Icononly.prj " for this discussion)
3. Name the main source file name (let's call it " Icononly.clw " for this discussion)
4. In the Target type drop down, select DLL
5. Press the OK button.

-------------------------
* Edit the Project
==============
1. Set the project properties to 16- or 32-bit (depending on your need)
2. Edit Icononly.clw to provide the bare minimum code required:

  PROGRAM
  CODE

3. Create an export file (.EXP) . In app gen this is created for you, but in a hand-coded

project you'll have to provide your own. Name it the same as the CLW and place it in 
the same directory. Here is a sample bare-bones EXP file:

   NAME 'icononly' WINDOWAPI

   CODE MOVEABLE DISCARDABLE PRELOAD
   DATA MOVEABLE SINGLE PRELOAD

   HEAPSIZE  1024

   SEGMENTS
        ENTERCODE MOVEABLE DISCARDABLE PRELOAD

   EXETYPE WINDOWS

   ;End of Exported Global Data

------------------------------------
*  Add the icons to link in
====================
1. Highlight Library, object, and resource files, then press the Add File button.
2. Set the "Files of Type" to Icon files, the select the Icon(s) using the file dialog.
     (TIP: you can multi-select files.)
3. Make your DLL.



Printed April 27, 2024, 12:53 pm
This article has been viewed/printed 35109 times.