Dears,

I am in development of a exe(just a normal exe, not a background server) capable of some networking functionality without UI.

Here I want to implement a feature that when the first time my exe connect the network, it will remember the IAP the user choosed in the pop-up IAP dialog-box, and never to bother user again for the next time my exe connect the network.

Here is the code to Create Ap Settings Handler:
Code:

// Create Ap Settings Handler. See SDK Help for parameters.
CApSettingsHandler* settingsHandler = CApSettingsHandler::NewLC(
ETrue,
EApSettingsSelListIsListPane,
EApSettingsSelMenuSelectNormal,
KEApIspTypeAll,
EApBearerTypeAll,
KEApSortNameAscending);
...



It seems my exe can not run the code above:
1. In simulator, it crash, with error message: "access violation"(EUser.dll)
2. on device, it leave without any notification:-(

Thus, is it possible to use CApSettingsHandler-like class in exe? Is there a way to initialize something(basic UI component?) to let it works? Or, is there other way to implement this feature?

Thank you for your help!