My problem is solved! I declared TCHAR *szUserName = ""; instead of TCHAR
szUserName[64] ; so I
didn't get any allocated space for szUserName...
/Bulent
Brian Mathis <[EMAIL PROTECTED]> skrev i
diskussionsgruppsmeddelandet:[EMAIL PROTECTED]
>
> On Thu, 14 Sep 2000, Bulent Gecer wrote:
> > Hello,
> >
>
> > This is the code I've written to install a .prc file to all
> > users listed (I know, it's not recommended, but I want to
> > do it anyway :), but it doesn't work!
> >
> > I've tracked the problem down to the following line in the code below:
> >
> > if((*PltGetUserPtr)(user_count, szUserName, &nUserNameSize) > 0){
> >
> > Why isn't this statement fullfilled?
> >
> > Thanks in advance!
> >
> > /Bulent Gecer
>
> If you catch the error code it's returning, you could look it up. It
> might give you some clues.
>
> if((result = (*PltGetUserPtr)(user_count, szUserName, &nUserNameSize)) >0)
>
> --
> Brian Mathis
> Direct Edge
> http://www.directedge.com
>
>
>
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/