All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 06-05-2005, 08:33 AM
peri peri is offline
Registered User
 
Join Date: Jan 2005
Posts: 12
peri is on a distinguished road
Symbian C++ - Getting Link Errors.

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(KCsyN ame));

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
Ads
 

Bookmarks

Tags
errors, link, symbian

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Symbian Signed launched Rafe Symbian OS News 1 06-02-2011 09:26 AM
Symbian OS version 9 announced Rafe Symbian OS News 40 28-10-2005 08:22 PM
Symbian Announce Q4 2004 Figures Ewan Symbian OS News 0 14-02-2005 01:48 PM
Symbian Announce updated tools for OS 9.0 Ewan Symbian OS News 1 02-02-2005 01:11 PM
Symbian launches Symbian OS v7.0s at Exposium03 Rafe Symbian OS News 5 08-05-2003 09:08 PM



All times are GMT. The time now is 05:48 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy