Hi,
 
 I am using following code to create a new Connection Profile
 ("TestProfile") with Connection Type GPRS and with its corresponding
 APN ("myapn").  For some reason I am unable to see APN Field (it shows
 Phone field instead of APN) when I select TestProfile from Network
 Preferences Panel.
 
 Err err;
        CncProfileID profileId;
        char * myProfileName = "TestProfile";
        char * myApn = "myapn";
        UInt16 deviceKind=0;
        char unLockFlag=0;
 
        err = CncProfileOpenDB();
        // obtain new profile ID.
        err = CncProfileCreate(&profileId);
 
        if (!err)
        {
                // Create a name for the profile.
                err = CncProfileSettingSet(profileId,
kCncParamName,myProfileName,
 StrLen(myProfileName)+1);
 
                deviceKind = kCncDeviceKindGPRS;
 
                err = CncProfileSettingSet(profileId, kCncParamDeviceKind,
 &deviceKind, kCncParamDeviceKindSize);
                err = CncProfileSettingSet(profileId,
kCncParam_GPRS_APNName, myApn,
 StrLen(myApn)+1);
                err = CncProfileSettingSet(profileId,
 kCncParamLocked,&unLockFlag,kCncParamLockedSize);
        }
        // close the profile database.
        err = CncProfileCloseDB();

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to