Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

PBORCA_SccConnect – PB Docs 2022 – PowerBuilder Library

PBORCA_SccConnect – PB Docs 2022

PBORCA_SccConnect

Description

Initializes source control and opens a project.

Syntax

Argument

Description

hORCASession

Handle to previously established ORCA
session

*pConfig

Pointer to a preallocated structure typically
initialized to zeros

Return value

INT. Typical return codes are:

Return code

Description

0 PBORCA_OK

Operation successful

-22 PBORCA_SCCFAILURE

Could not connect to source control

-23 PBORCA_REGREADERROR

Could not read registry

-24 PBORCA_LOADDLLFAILED

Could not load DLL

-25 PBORCA_SCCINITFAILED

Could not initialize SCC connection

-26 PBORCA_OPENPROJFAILED

Could not open project

Usage

This method initializes a source control session based on the
connection information supplied in the PBORCA_SCC structure. The
PBORCA_SCC structure is defined as follows:

You can either populate the structure manually or else call
PBORCA_SccGetConnectProperties to obtain the connection information
associated with a specific workspace file. This function:

  • Opens the requested source control project

  • Creates a CPB_OrcaSourceControl class that implements the
    PBORCA_SCC methods

  • Defines a runtime environment that persists until
    PBORCA_SccClose is called

The runtime environment has four subsystems: runtime engine (rt),
object manager (ob), PowerScript compiler (cm), and storage manager (stg).
The runtime environment is used to process the target identified by a
subsequent PBORCA_SccSetTarget call. To process multiple targets, you must
close the SCC connection, close the ORCA session, and open a new ORCA
session.

Examples

The following example connects to PBNative source control:

See also

PBORCA_SccClose

PBORCA_SccConnectOffline

PBORCA_SccGetConnectProperties

PBORCA_SccSetTarget


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x