SccOpen problem -
07-24-2006
, 08:59 PM
I want to create an application that uses an available .dll such as
source
safe's SSSCC.DLL to perform Add operations to the default source
control
system available. Is there a code sample for this? I am writing in C++
but I
have been unable to find much documentation outside of the SCC API or
source
in any language. The SCC API seems inadequate since it does not give a
very
good description of what parameters I need to pass to the functions it
defines.
My current problem is that I call SccInitialize, which returns a
SCC_OK, and
then SccOpenProject always returns a SCC_E_PROJSYNTAXERR or
SCC_E_NONSPECIFICERROR depending on what I pass to it. My current call
is as
follows:
SccOpen = (SCCOPEN) GetProcAddress(hMod, TEXT("SccOpenProject"));
int result3 =
SccOpen(pvContext,(HWND)0,User,ProjName,LocalProjP ath,lpAuxPathLabel,Comment,NULL,SCC_OP_CREATEIFNEW );
Where pvContext and lpAuxPathLabel are returned from SccInit, User is
"afernando", ProjName is "$/test" (I've tried many variations on this),
LocalProjPath is "C:\\", and Comment is "". This returns a
SCC_E_PROJSYNTAXERR.
If anyone can either let me know what the correct syntax is, or even
better,
point me to a website, help file, or some other source of documentation
that
would better describe what I need to do, that would be much
appreciated.
Thanks,
Kevin |