A simple asynchronous application can also connect to a
Creo Parametric process that is already running on a local computer. The method
pfcAsyncConnection::Connect performs this connection. This method fails to connect if multiple
Creo Parametric sessions are running. If several versions of
Creo Parametric are running on the same computer, try to connect by specifying user and display parameters. However, if several versions of
Creo Parametric are running in the same user and display parameters, the connection may not be possible.
pfcAsyncConnection::GetActiveConnection returns the current connection to a
Creo Parametric session.
To disconnect from a
Creo Parametric process, call the method
pfcAsyncConnection::Disconnect. This method can be called only if you used the method
pfcAsyncConnection::Connect to get the connection.