HighTechTalks DotNet Forums  

SccOpen problem

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss SccOpen problem in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default 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


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.