PBORCA_SccSetTarget
Description
Retrieves the target file from source control, passes the
application object name to ORCA, and sets the ORCA session library
list.
Syntax
|
1 2 3 4 5 |
INT PBORCA_SccSetTarget ( HPBORCA hORCASession, LPTSTR pTargetFile, LONG lFlags, PBORCA_SETTGTPROC pSetTgtProc, LPVOID pUserData ); |
|
Argument |
Description |
|---|---|
|
hORCASession |
Handle to previously established ORCA |
|
pTargetFile |
Target file name |
|
lFlags |
Allows you to control the behavior of the target |
|
pSetTgtProc |
Pointer to the user-defined callback |
|
pUserData |
Pointer to a preallocated data buffer |
Return value
INT.
Usage
This method takes the place of PBORCA_SetLibraryList and
PBORCA_SetCurrentAppl in a traditional ORCA application.
In addition to retrieving the target file from source control and
setting the application object and library list, PBORCA_SccSetTarget calls
a user-defined callback function one time for each library in the library
list. This lets you know which libraries will be refreshed by default and
gives you an opportunity to call PBORCA_SccExcludeLibraryList if you think
that specific shared libraries have already been refreshed by a previous
task.
You assign the lFlags argument to set the refresh behavior on target
libraries you retrieve from source control:
|
Flag |
Description |
|---|---|
|
PBORCA_SCC_OUTOFDATE |
Performs comparisons to determine if objects residing |
|
PBORCA_SCC_REFRESH_ALL |
Target libraries are completely refreshed. When used |
|
PBORCA_SCC_IMPORTONLY |
Indicates that all the necessary objects to rebuild |
|
PBORCA_SCC_EXCLUDE_CHECKOUT |
Provides a mechanism to refresh local targets through |
If target libraries and directories do not exist in the local
project path specified by PBORCA_SccConnect, then these directories and
PBL files are created dynamically by the PBORCA_SccSetTarget call.
SccSetTarget does an implicit PBORCA_SessionSetLibraryList and
PBORCA_SessionSetCurrentAppl. After you call PBORCA_SccSetTarget (and
presumably PBORCA_SccRefreshTarget), you can do other work that requires a
current application and an initialized library list, such as creating PBDs
and EXEs. This is more efficient than calling PBORCA_SccClose, then
reinitializing the library list and current application to create the PBDs
and EXEs.
See also