From: Patrick <drn...@ya...> - 2005-04-14 10:24:58
|
Hello, I am trying to compiling my plugins with the mingw compiler. I don't have problem to generate the fex file (in fact a dll). But when i launch "Studio 9", my plugins doesn't appear in the plugins list. Note that if i compile my code with Visual Studio, my plugins work perfectly. The registerEffects function is : RTFX_EXPORT RTFXErr WINAPI registerEffects(RTFx::IEffectLoader* loader, RTFx::IDescriptionSet* description) { FILE * toto; toto=fopen( "c:\\toto.txt", "a" ); fprintf( toto, "registerEffects\n");fflush( toto ); fprintf( toto, "--> registerEffects %ld\n", description);fflush( toto ); // *** Fill in the description we are passed with the information about our effect description->Clear(); fprintf( toto, "1\n");fflush( toto ); description->SetGroup(EFFECT_GROUP); fprintf( toto, "2\n");fflush( toto ); description->SetName(EFFECT_NAME); fprintf( toto, "3\n");fflush( toto ); description->SetGUID(UIID_CanalPlus); fprintf( toto, "4\n");fflush( toto ); description->SetVersion(EFFECT_VERSION); fprintf( toto, "5\n");fflush( toto ); PIM::IPtr RTFx::IDescriptionSet2, &RTFx::IID_DescriptionSet2 idesc2; fprintf( toto, "6\n");fflush( toto ); description->QueryInterface(RTFx::IID_DescriptionSet2, reinterpret_cast(void**)(&idesc2)); if (idesc2) idesc2->SetVersionNumber(1, 0, 0); fprintf( toto, "7\n");fflush( toto ); // Le plugins ne supporte que des modes à base de RGB description->AddInputs(1, RTFx::kRGB24 | RTFx::kARGB32); fprintf( toto, "8\n");fflush( toto ); fclose(toto); return loader->DoLoad(description); } The "toto.txt" file contains the following : registerEffects --> registerEffects 97324296 I think, the registerEffects fails when it executes the line "description->Clear();". So "Studio 9" find my plugins and try to execute the registerEffects function. But this last can't use the parameter "description" : the plugins is not registered. Perhaps the main problem is the calling convention of the method "Clear". Is someone has succesfully compiling his plugins with mingw ? Or have you an idea ? Best regards, drneogeo __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ |