Linked Applications

A linked Server application based on dynamic views must initialize the process as a view server. Normally, an event loop starts then. For example, the main function looks like this for a graphic view server that uses the Views event loop.

Example

#include <ilserver/mvproc.h>

#include <ilserver/mvserver.h>

// Views includes

 

int main(int argc, char** argv)

{

if (!IlsMvProcess::Initialize(argc,argv);

|| !IlsMvServer::Initialize(argc,argv)){

cerr << "Initialization failed" << endl;

return 1;

}

 

// Views initializations...

....

 

IlvMainLoop();

return 0;

};

To create the executable, you must link your application object files with the Server libraries mvserver and server and ilog.