Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Symbian C++ - Getting Link Errors.

0 replies · 1,583 views · Started 06 May 2005

Hi,

I am a new to C++ and am getting link errors when i used the following code. What header file am i missing to include? Thanks in advance.

//************************
//Code starts here
//************************

RCommServ commServer;
RComm comm;

TRequestStatus status;

User::LeaveIfError(commServer.Connect());

_LIT(KCsyName, "dataport"😉;

User::LeaveIfError(commServer.LoadCommModule(KCsyName));

TBufC<12> port(_L("DATAPORT::0"😉);

TInt ret = comm.Open(commServer,port,ECommShared);

_LIT8(KUSSDString,"AT+CUSD=1,\"*12345#\"\r\n"😉;

comm.Write(status,KUSSDString);
User::WaitForRequest(status);
User::LeaveIfError(status.Int());
User::After(10000);

comm.Close();
commServer.Close();

//**************************
//code ends here
//**************************

Regards,
Peri