__declspec(dllexport) ClassDesc* LibClassDesc(int i) { switch(i) { case 0: return GetExporterDesc(); default: return 0; } }
__declspec( dllexport ) ClassDesc* LibClassDesc(int i) { // For each class we added, return it's class description switch(i) { // The first and only class is our Exporter class case 0: return GetExporterDesc(); // Bad class ID; not a valid class default: return 0; } }