C/C++
register.txt
Associated article: Self-Registering Objects in C++
Tags: C/C++
Published source code and related files accompanying the article by Jim Beveridge in which he presents the "speciality store" that lets new classes be registered at run time, even if they live in a shared library or DLL. Once registered, these new classes are treated exactly like built-in classes. Also see REGISTER.ZIP.
Self-Registering Objects in C++
by Jim Beveridge
Listing One
(a)
enum file_types { TYPE_UNKNOWN, TYPE_JPEG, TYPE_TIFF, TYPE_GIF };
int find_extension_type(char *ext)
{
if (strcmp(ext, ".JPG") == 0)
return TYPE_JPEG;
if (strcmp(ext, "....


