Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

The gisfrontend plugin is mostly platform independent. The only windows specific part I found so far was

Code Block

        void add(const char* libraryPath, const char* apiSymbolName) {
                HMODULE libraryAddress = LoadLibrary(libraryPath);
                assert(libraryAddress != NULL);

                AbstractGisPlugin* (*fp)();
                fp = (AbstractGisPlugin* (*)())GetProcAddress((HMODULE)libraryAddress, apiSymbolN\
ame);
                assert(fp != NULL);

                AbstractGisPlugin* plugin = fp();
                plugins.push_back(plugin);
        }

This loads the dynamic library. This is done with the dlopen calls.

References

http://www.ibm.com/developerworks/aix/library/au-porting/
http://www.faqs.org/docs/Linux-HOWTO/Program-Library-HOWTO.html