473,473 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

do any one know Symbian C++ for mobile application

1 New Member
Hi everyone,

I have problem in copying the data to a array variable which is read from a file..

Can any one plz help me..
Here is the code which i'm using to read the data from a file..
Expand|Select|Wrap|Line Numbers
  1.  
  2.     RFs fs;
  3.     User::LeaveIfError(fs.Connect());
  4.     CleanupClosePushL(fs);
  5.  
  6.     RFile file;
  7.     TInt Err1=file.Open(fs,aFilename,EFileRead);
  8.     if(Err1==KErrNone)
  9.     {
  10.         TInt Size;
  11.         file.Size(Size);
  12.         HBufC8* buffer = HBufC8::NewLC(Size);
  13.         TPtr8 ptr= buffer->Des();
  14.         file.Read(ptr);
  15.         file.Close();
  16.         CleanupStack::PopAndDestroy(buffer);
  17.     }
  18.     fs.Close();
  19.     CleanupStack::PopAndDestroy(&fs); 
  20.  
Now i want to copy the data to a array variable that is..
Expand|Select|Wrap|Line Numbers
  1. CDesCArray* PlaylistSongs = new (ELeave) CDesCArrayFlat(3);
  2.  
can any one help me out..

Regards,

Mounika MV
Nov 9 '11 #1
0 1265

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Amy | last post by:
Hi, I'm using vs 2005 to develop a mobile application. I have tried to use a closing event to pop up a messagebox before close the form. It seems that the form is hided. And I found out that the...
0
by: arunakoride | last post by:
Hi I am trying to set SocketOption in Windows Mobile Application, but its throwing Exception. Please let me know how to set Receive Time out for socket in Windows Mobile VS2005 application. ...
3
by: tito | last post by:
Can we develop Windows Mobile Application using Perl Script? Is there any way to interact with a Windows Application using Perl? Can we test a Windows Mobile GUI using Perl? Can anyone answer me...
1
by: Alan T | last post by:
Anyone has sample mobile application written in C#? I would like to learn that sort of application development. If there is a little sample application written in C#, can be downloaded from...
0
by: junaidhassan | last post by:
Hello, I m new in mobile application but now i have to deal with this. I want to create an application that run on window mobile in nokia sets. Application should be windows application (not...
3
by: jrjawad | last post by:
Hi, Brothers i develop some application for mobile in c# but i dont know how to install these application on mobile i have a samsung e250 mobile can u help me out and i m totely new in mobile...
0
Todd Faisal
by: Todd Faisal | last post by:
A quick overview of the popular mobile application development platforms: Android application development Android is developer’s dream – it is free, open sourced, and it is developed and endorsed...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.