Symbian
Symbian OS Library

FAQ-0512 Why does my console program fail to dial up when it works fine on the emulator?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Comms
Created: 08/02/2000 Modified: 06/29/2001
Number: FAQ-0512
Platform: Not Applicable

Question:
When I develop a TCP/IP client program in a text shell or console - eg using the C standard library (ESTDLIB) or using CConsoleBase, it refuses to complete the connection to the network. I have tested web within the full emulator, and it can access remote web servers fine.

My code also works fine on a target device.


Answer:
The problem lies in the difference between text shells on the emulator and a real Symbian OS device. The console is trying to bring up a dialog that it can't. The console lacks the Eikon environment that the dial up software uses to display the 'Connect to Internet' dialog that confirms the settings it will use.

Therefore the solution is to first run the full emulator, and uncheck the Internet control panel option 'Show connection dialog' so that a connection can be established without any user interface being displayed.

Now when you use your text shell program, the connection will complete normally.