[p4] P4COM confusion

Greg Whitfield g.whitfield at computer.org
Mon Feb 5 02:22:32 PST 2007


You could try using P4.NET that Shaun Hladky has just released. Here's a
snip from his recent announcement:

-----------------------------------------------
P4.Net is a Perforce API for the Microsoft .Net (CLR).  It's interface is
similar to P4Python/P4Ruby/P4Perl.

Highlights:
*Support for Framework versions 1.1 and 2.0.
*Results can be streamed as "pre-parsed", and are abstracted to "Recordsets"
and "Records".
*Direct manipulation of forms (p4 client, branch, user, etc.).
*Connections are auto-managed (no need to set "ParseForms" or "Tagged"
APIs).
*P4PendingChangelist object makes submitting changes a snap.
*xcopy deployment... no dlls to register.
*Sample Apps, including MSBuild custom tasks

Documentation:
http://public.perforce.com/guest/shawn_hladky/P4.Net/doc/html/Index.html

Distribution (binaries, chm help file, and sample applications)
ftp://public.perforce.com/guest/shawn_hladky/P4.Net/dist/P4.Net.zip

Source (Perforce Public Depot):
//guest/shawn_hladky/P4.Net/
--------------------------------------------


If you are only using P4COM as glue, it maybe worth going direct. 

Greg
~~~~


 

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of
John_Donovan at scee.net
Sent: 05 February 2007 09:59
To: perforce-user at perforce.com
Subject: [p4] P4COM confusion

Hi all,
I'm new to Perforce development, so be gentle. I'm using P4COM to write a
Perforce tool in C#. I want to get a list of the depots in "tagged" form, so
I use the following code:

...
perforce.Tagged();
perforce.Connect();
perforce.ExceptionLevel = 1;
Array output;
output = perforce.run("depots");
...

But the output string just contains the non-tagged data. So I figured I'd
need to use get_ArrayVar(), but I've no idea what array var to use! Is there
any documentation on how this function works and what the valid inputs are?
I still don't quite have the knowing of the Perforce API/P4COM, so I'm
probably missing something simple :s

John Donovan
Sony Computer Entertainment Europe
http://www.scee.com


**********************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify postmaster at scee.net
This footnote also confirms that this email message has been checked for all
known viruses.
Sony Computer Entertainment Europe Limited Registered Office: 10 Great
Marlborough Street, London W1F 7LP, United Kingdom Registered in
England:3277793
**********************************************************************
_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user





More information about the perforce-user mailing list