Click here to Skip to main content
15,903,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Process launching Pin
J.B.22-Sep-08 4:10
J.B.22-Sep-08 4:10 
GeneralExit Error, revisited (updated) Pin
LighthouseJ19-Feb-05 10:18
LighthouseJ19-Feb-05 10:18 
GeneralWhy am i getting this error and how to solve it? Thanks. Pin
shapper19-Feb-05 10:07
shapper19-Feb-05 10:07 
GeneralRe: Why am i getting this error and how to solve it? Thanks. Pin
ThatsAlok19-Feb-05 19:57
ThatsAlok19-Feb-05 19:57 
GeneralWriting File Output Simultaneously Pin
OutlawTornNMT19-Feb-05 9:57
OutlawTornNMT19-Feb-05 9:57 
GeneralRe: Writing File Output Simultaneously Pin
Blake Miller22-Feb-05 6:52
Blake Miller22-Feb-05 6:52 
GeneralAccess Files Pin
Fadhil T Aula19-Feb-05 8:27
Fadhil T Aula19-Feb-05 8:27 
GeneralVisual DSP++ Pin
belame19-Feb-05 6:18
belame19-Feb-05 6:18 
Hi all,


I am working with ADSP BF533 who's software is very much similar to VC++.

Let me explain the out line of my code and then tell my problem


----------------------------------------------------------
void main(void)
{

all the innitializations.....all other functions are called here

while(1)

{

for (i =0;i<100;i++)

-----
-----

if( a cetrain condition is met)


{



fp = freopen("", "a+", stdout);


printf("\n\r================\n\r");
printf("%f\n\r",azm);

fclose( fp);

}

}
}

-----------------------------------------------------------------------------------------------------------------------

so I don't think I can open and close the file outside the loop(as all my code is there inside "while(1)" loop.(do let me know if there is a possibility to open and close a file only once even in this situation,If i can do this then my problem is solved)

also I have noticed that I am able to print as many times as I want before closing the file once.

but after I open and close the file for the 1st time,i am able to open the file for the second time but I am not able to close the file for the second time....


here i am trying to send the data out from the processor's memory back to the "terminal screen"....through the UART

so tried to debug the code then i realised that for some reason the UART_LSR registers is not being reset to 0x0060 as it should be done after each transfer is complete.....this situation araises only when i try to close the file for the second time (obvisouly after i open the file for the 2nd time)...

SO NEED HELP FROM THE EXPERTEIS ...

thanking you all in advance and hope to hear from u all soon

with best regards,
shwetha
QuestionCOM of shell menu? Pin
includeh1019-Feb-05 6:09
includeh1019-Feb-05 6:09 
AnswerRe: COM of shell menu? Pin
Chris Losinger19-Feb-05 8:13
professionalChris Losinger19-Feb-05 8:13 
GeneralRe: COM of shell menu? Pin
includeh1019-Feb-05 10:07
includeh1019-Feb-05 10:07 
GeneralWinExec() and register Pin
includeh1019-Feb-05 5:56
includeh1019-Feb-05 5:56 
GeneralString Problems Pin
TheCult19-Feb-05 5:41
TheCult19-Feb-05 5:41 
GeneralRe: String Problems Pin
includeh1019-Feb-05 5:52
includeh1019-Feb-05 5:52 
GeneralRe: String Problems Pin
TheCult19-Feb-05 6:25
TheCult19-Feb-05 6:25 
GeneralRe: String Problems Pin
includeh1019-Feb-05 6:50
includeh1019-Feb-05 6:50 
GeneralRe: String Problems Pin
Konrad Windszus19-Feb-05 6:57
Konrad Windszus19-Feb-05 6:57 
Generalauto run a bat file Pin
includeh1019-Feb-05 2:47
includeh1019-Feb-05 2:47 
GeneralRe: auto run a bat file Pin
TheCult19-Feb-05 6:31
TheCult19-Feb-05 6:31 
GeneralBidirectional CMap Pin
Konrad Windszus19-Feb-05 2:18
Konrad Windszus19-Feb-05 2:18 
GeneralRe: Bidirectional CMap Pin
Kevin McFarlane19-Feb-05 2:37
Kevin McFarlane19-Feb-05 2:37 
GeneralRe: Bidirectional CMap Pin
Konrad Windszus19-Feb-05 2:43
Konrad Windszus19-Feb-05 2:43 
GeneralRe: Bidirectional CMap Pin
Kevin McFarlane19-Feb-05 2:59
Kevin McFarlane19-Feb-05 2:59 
GeneralRe: Bidirectional CMap Pin
Neville Franks19-Feb-05 11:49
Neville Franks19-Feb-05 11:49 
GeneralRe: Bidirectional CMap Pin
Kevin McFarlane19-Feb-05 23:01
Kevin McFarlane19-Feb-05 23:01 

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.