Click here to Skip to main content
15,906,574 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Menus Pin
#realJSOP20-Mar-03 5:40
professional#realJSOP20-Mar-03 5:40 
GeneralRe: Menus Pin
João Paulo Figueira20-Mar-03 5:45
professionalJoão Paulo Figueira20-Mar-03 5:45 
GeneralRe: Menus Pin
Amit Dey31-Mar-03 12:29
Amit Dey31-Mar-03 12:29 
GeneralRe: Menus Pin
#realJSOP31-Mar-03 13:30
professional#realJSOP31-Mar-03 13:30 
GeneralUrgent! Winsock Problem Pin
Anonymous16-Mar-03 7:42
Anonymous16-Mar-03 7:42 
GeneralRe: Urgent! Winsock Problem Pin
xpmikes16-Mar-03 22:52
xpmikes16-Mar-03 22:52 
GeneralRe: Urgent! Winsock Problem Pin
Anonymous17-Mar-03 1:31
Anonymous17-Mar-03 1:31 
GeneralUrgent! FileI/O Problem Pin
Anonymous16-Mar-03 7:41
Anonymous16-Mar-03 7:41 
Hi all,

I am using Embedded Visual C++ 3.0 and MFC dialog mode for implementation. Firstly, if I want to read one line each time from a .txt file in Pocket PC, can I use the following code?

char* data;
data = NULL;

fp=fopen("\\sip.txt","r");
while((!feof(fp)) && (fp != NULL))
{
fscanf(fp, "%s", data);
// Process the data here
}
fclose(fp);

Then, if I want to get the typed message from an edit box in a MFC dialog box and write/ append it into the file each time a line, should I do this?

CString asip;
GetDlgItemText(INPUT_ASIP, asip);

fp=fopen("\\sip.txt","a");
fprintf(fp, "%s\n", asip);
fclose(fp);

But I encounter a problem that the output file “sip” contains only the first character of the CString asip. How can I solve this?

It’s really urgent as I have to hand the program before 26/3/2003 so please kindly help me.

Many thanks!!!

Wil

GeneralRe: Urgent! FileI/O Problem Pin
João Paulo Figueira16-Mar-03 11:20
professionalJoão Paulo Figueira16-Mar-03 11:20 
GeneralRe: Urgent! FileI/O Problem Pin
williamking16-Mar-03 18:34
williamking16-Mar-03 18:34 
GeneralRe: Urgent! FileI/O Problem Pin
João Paulo Figueira16-Mar-03 22:31
professionalJoão Paulo Figueira16-Mar-03 22:31 
GeneralRe: Urgent! FileI/O Problem Pin
#realJSOP18-Mar-03 3:14
professional#realJSOP18-Mar-03 3:14 
GeneralRe: Urgent! FileI/O Problem Pin
João Paulo Figueira18-Mar-03 3:23
professionalJoão Paulo Figueira18-Mar-03 3:23 
GeneralRe: Urgent! FileI/O Problem Pin
dlhson218-Mar-03 22:07
dlhson218-Mar-03 22:07 
GeneralRe: Urgent! FileI/O Problem Pin
João Paulo Figueira19-Mar-03 3:04
professionalJoão Paulo Figueira19-Mar-03 3:04 
GeneralCancel button on voice control and size of voice recording Pin
Raihan10-Mar-03 20:34
Raihan10-Mar-03 20:34 
QuestionRead text file ?? Pin
dlhson210-Mar-03 17:30
dlhson210-Mar-03 17:30 
AnswerRe: Read text file ?? Pin
Daniel Strigl10-Mar-03 19:54
Daniel Strigl10-Mar-03 19:54 
GeneralRe: Read text file ?? Pin
dlhson218-Mar-03 20:38
dlhson218-Mar-03 20:38 
GeneralRe: Read text file ?? Pin
Daniel Strigl18-Mar-03 20:55
Daniel Strigl18-Mar-03 20:55 
GeneralPlatform Manager 4.0 Installation Problem Pin
Mark Otway10-Mar-03 9:46
Mark Otway10-Mar-03 9:46 
GeneralRe: Platform Manager 4.0 Installation Problem Pin
João Paulo Figueira10-Mar-03 11:14
professionalJoão Paulo Figueira10-Mar-03 11:14 
GeneralRe: Platform Manager 4.0 Installation Problem Pin
Mark Otway10-Mar-03 20:01
Mark Otway10-Mar-03 20:01 
GeneralRe: Platform Manager 4.0 Installation Problem Pin
João Paulo Figueira10-Mar-03 22:18
professionalJoão Paulo Figueira10-Mar-03 22:18 
GeneralRe: Platform Manager 4.0 Installation Problem Pin
Mark Otway11-Mar-03 21:32
Mark Otway11-Mar-03 21:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.