Click here for NewsObjects Overview
AddProfile Method (Profile Manager Control)
Windows - Visual C++


Description
The AddProfile method adds a profile to a NewsEdge Server.

Syntax
long result = AddProfile(LPCTSTR profCode, LPCTSTR profName, LPCTSTR profCriteria);

The AddProfile syntax has these parts:

Part

Description

profCode

A string containing the 2 character code which will identify the new profile.

profName

A string containing the new profile's long name, which is limited to 32 characters.

profCriteria

A string containing the new profile's criteria.

result

A long integer containing 0, if the operation succeeded, or an error code, otherwise.

Remarks
The user is limited to the number of profiles specified by GetNumProfilesAllowed. Please check that the count returned by GetProfileCount is less than this value before attempting add a new profile.

The profile criteria specified by profCriteria must be in reverse polish notation.

See Also: DeleteProfile ModifyProfile

Back to: Profile Manager Methods