Dynamic View Services > Implementing a Dynamic View Server and its Components > Initializing and Running a Component > Using Rogue Wave Server MvTCP and Rogue Wave Views
 
Using Rogue Wave Server MvTCP and Rogue Wave Views
A subclass of IlsTcpMvProcess is provided to combine the MvTCP main loop and the Rogue Wave Views main loop. Note that on Windows®, this class can be used for all graphical API that use the Windows message loop as the main loop. (See Appendix E, The MvTCP Communication Layer for more information).
Write the following code to initialize your component:
#include <ilserver/mvtcp/tcpvmvproc.h>
#include <ilserver/mvproc.h>
// Rogue Wave Views includes
int main(int argc, char **argv)
{
if (!IlsIlvTcpMvProcess::Initialize(argc,argv))
cerr << "Initialization of server failed" << endl;
return 1;
}
// Rogue Wave Views initializations...
...
IlvMainLoop();
}
You must then link the component with the mvcomp, mvtcp (or mvvwtcp on UNIX® platforms), and ilog libraries.

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.