Foundation > Using Rogue Wave Views on Microsoft Windows > Integrating Rogue Wave Views Code into a Windows Application
 
Integrating Rogue Wave Views Code into a Windows Application
To integrate  Rogue Wave® Views code into an existing application running on Microsoft Windows, all you have to do is use the second constructor of the IlvDisplay class, which takes an instance of your application as its argument:
int PASCAL
WinMain(HANDLE appInstance, HANDLE, LPSTR, int)
{
...
IlvDisplay* display = new IlvDisplay((IlAny)appInstance,
"ApplicationName");
...
}
Note, however, that deleting the IlvDisplay object does not post a QUIT message. This is done in order not to exit the event loop, as you might want to do some more work after the Rogue Wave Views session is closed.
Here, because you provide a WinMain entry point to your application, you do not have to link your executable file using the ILVMAIN.OBJ file.

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.