void CBp_kec_mfcView::FlashDraw_Cement_JaegoDisplay() { // ½Ã¹ÎÆ® c1Àç°í CString cjaego; cjaego.Format("%6ld",silo1); m_flash.SetVariable("jaego_c1",cjaego); // ½Ã¸àÆ® c2Àç°í cjaego.Format("%6ld",silo2); m_flash.SetVariable("jaego_c2",cjaego); } //-----------------------------// tot_batch++; //tot_lube=ch_hap+lube; tot_lube+=lube; if(tot_lube<0) tot_lube=old_tot_lube+lube; old_tot_lube=tot_lube; //----------------------------------------------------------- silo1 -= (long)PRINT_ANALOG[4]; silo2 -= (long)PRINT_ANALOG[5]; //----------------------------------------// else if(text_video_map[0] == '5') { _save_text_video(25,69,0,15,"0"); _read_text_video(26,0,16,0); sscanf(&text_video_map[0],"%07ld %07ld",&value1, &value2); fp = fopen("printpos.dat","r"); fscanf(fp,"%6d%6d%6d%6d%6d %7f %6ld %6ld",&check_day, &hour, &line_count, &page, &tot_batch, &tot_lube, &silo1, &silo2); fclose(fp); silo1 = silo1+value1; silo2 = silo2+value2; fp = fopen("printpos.dat","w"); fprintf(fp,"%6d%6d%6d%6d%6d %7.2f %6ld %6ld\n", check_day,hour, line_count, page, tot_batch, tot_lube, silo1, silo2); fclose(fp); sprintf(grbuf_kc,"%6ld",silo1); Bk_color = LIGHTCYAN; outtextxy_han(577, 274, BLACK, grbuf_kc); /*--------------------silo2 display ------------------------*/ sprintf(grbuf_kc,"%6ld",silo2); Bk_color = LIGHTCYAN; outtextxy_han(577, 294, BLACK, grbuf_kc); }