Article # 564, added by Geoworks, historical record
| first | previous | index | next | last |

How to break up large code segments without breaking up the source file.




Q. Is there any way to break up a large code segment without breaking
   up the source file? 

A. There is if you are using Borland C++ 4.5.  Use the following 
   pragma command:

   #pragma codeseg MYRESOURCENAME

   All code between that pragma and the next pragma (or the end of the
   source file, which ever comes first) will go into a resource called
   MYRESOURCENAME. You can substitute "MYRESOURCENAME" with any name you
   like.