Cheers All,
--------------gmpi.c-------------------------------------- #include <stdio.h> #include "gmpi.h"
//int _tmain(int argc, _TCHAR* argv[]) int main(int argc, char* argv[]) { /* signature of Factory construction function */ GMPI_DllEntry dll_entry_point; GMPI_DllHandle dll_handle; IGMPI_Factory *factory; IGMPI_Plugin *my_plugin; GMPI_RESULT r;
/* STEP 1: Load DLL */ r = GMPI_DllLoad( &dll_handle, "../test_plugin/debug/test_plugin.dll" );
/* STEP 2: Locate entrypoint */ r = GMPI_DllSymbol( &dll_handle, "DllGetClassObject", &dll_entry_point );
// test a call into plugin r = (my_plugin->Vtable->Placeholder1)(my_plugin, 42);
/* STEP 5: delete factory and plugin */ r = (my_plugin->Vtable->Release)(my_plugin); r = (factory->Vtable->Release)(factory); return 0; }
---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.
Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe