IPC examples demonstrate IPC APIs. Two examples are provided to demonstrate both managed and native APIs
-
ExternApp2010: The ExternApp2010 is meant as an example for the end user of the IPC api. It is a 64 bit project compiled under Visual Studio 2012. There is no makefile as such as it is meant to be compiled by the end user. It is currently a WIP.
-
IPCNetClient: The IPCNetClient is meant as a C# example for the end user of the managed IPC api. It is a 64 bit project compiled under Visual Studio 2012. There is no makefile as such as it is meant to be compiled by the end user. It is currently a WIP.
In order to compile "ExternApp2010" successfully, some settings need to be done by the user:
-
Configuration properties->Debugging->Working Directory: should be set to the location of Bentley.imodelconnection.dll and Bentley.imodelmessage.dll.
-
Configuration properties->C/C++->General->Additional Include Directories: The locations of ConnectionManager.h and WString.h (e.g. if it's in Bentley it should be set to Bentley) need to be included here.
-
Configuration properties->Linker->Input->Additional Dependencies: Needs to include bentley.imodelconnection.lib;rpcrt4.lib;bentley.lib.
-
Configuration properties->Linker->General->Additional Library Directories: The path to Bentley.imodelconnection.lib, Bentley.imodelmessage.lib and Bentley.lib needs to be set here.
In order to compile "IPCNetClient" and run successfully, some settings need to be done by the user:
-
The Bentley.imodelIPC.dll needs to be properly referenced and that in turns uses these dlls: Bentley.imodelconnection.dll, Bentley.imodelmessage.dll and Bentley5.dll