Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Generic API Error with NWUsrGrp control

8 views
Skip to first unread message

Paul Soucy

unread,
Nov 30, 2009, 5:29:53 PM11/30/09
to
Hi,

I have the following C# test program:

NWSessLib.NWSess sess = new NWSessLib.NWSess();
bool retval = sess.Login("",
"NDS:\\\\TESTLAB\\framingham\\admin", "xxxxxx", false);

NWDirLib.NWDir nwdir = new NWDirLib.NWDir();
nwdir.FullName = "NDS:\\\\TESTLAB\\framingham";
//the on the next line, dircount = 344, I have confirmed that
many of these are group types
int dircount = nwdir.Entries.Count;

NWUsrGrpLib.NWUsrGrp nwgrp = new NWUsrGrpLib.NWUsrGrp();
nwgrp.GroupSearchScope =
NWUsrGrpLib.NWSearchScope.ugSearchSubtree;
nwgrp.FullName = "NDS:\\\\TESTLAB\\framingham";
//Next line causes a 'General API Error'
NWUsrGrpLib.NWGroups groups = nwgrp.Groups;
int count = groups.Count;

I am simple attempting to iterate over the groups in the
'NDS:\\TESTLAB\framingham' context. Can anyone help troubleshoot this
'General API Error' or suggest an alternative?


0 new messages