Click here to Skip to main content
15,916,693 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Append one string at begin of another Pin
JohnJ13-Sep-03 9:32
JohnJ13-Sep-03 9:32 
GeneralRe: Append one string at begin of another Pin
Michael Dunn13-Sep-03 17:43
sitebuilderMichael Dunn13-Sep-03 17:43 
GeneralRe: Append one string at begin of another Pin
ZoogieZork13-Sep-03 9:32
ZoogieZork13-Sep-03 9:32 
GeneralRe: Append one string at begin of another Pin
skaanji13-Sep-03 10:29
skaanji13-Sep-03 10:29 
Generalmouse and keyboard Pin
Ta_Tee47313-Sep-03 6:55
Ta_Tee47313-Sep-03 6:55 
GeneralChecking the attributes of a file Pin
Dilshad Husain13-Sep-03 5:29
Dilshad Husain13-Sep-03 5:29 
GeneralRe: Checking the attributes of a file Pin
Michael Dunn13-Sep-03 5:49
sitebuilderMichael Dunn13-Sep-03 5:49 
Generalprogram nt responding--error Pin
coda_x13-Sep-03 2:09
coda_x13-Sep-03 2:09 
i wrote the following:

void CText_dialogDlg::OnSearch()
{
CString buffer;
FILE *stream;

char target[80],etchant[80],conc[300];
char name[80];
int temp;
int m_itemp;
float etchrate;
// float m_fetchrate;
CString name_str;
CString eof = "EOF";
CString m_strTarget;
CString m_strConc;
CString m_strEtchant;
CString searchkey;

stream = fopen( "e:\\fyp_2003\\database.txt", "r" );

searchkey=m_strkey;

do
{
fscanf( stream, "%s", name );
fscanf( stream, "%s", target );
//fscanf( stream, "%s", process );
fscanf( stream, "%s", etchant);
fscanf( stream, "%s", conc);
fscanf( stream, "%d", &temp );
fscanf( stream, "%f", &etchrate );
name_str = name;

}while (name_str != searchkey);


/* Output data read: */
CString str;

str.Format("%s %s %s %s %d %f",name,target,etchant,conc,temp,etchrate);

m_dialog_etch.m_strTarget = target;
//m_dialog_etch.m_str_process = process;
m_dialog_etch.m_strEtchant = etchant;
m_dialog_etch.m_itemp = temp;
m_dialog_etch.m_fetchrate = etchrate;
m_dialog_etch.m_strConc = conc;

UpdateData(FALSE);
m_dialog_etch.DoModal();
fclose( stream );

}

but my dialog_etch din appear, instead the program hanged.
i have 2 dialogs, dialog1 and dialog_etch, when user key in the edit box, my dialog etch will retrieve the info from a txtfile.
GeneralRe: program nt responding--error Pin
coda_x13-Sep-03 2:10
coda_x13-Sep-03 2:10 
GeneralRe: program nt responding--error Pin
PengFeidu13-Sep-03 2:36
PengFeidu13-Sep-03 2:36 
GeneralRe: program nt responding--error Pin
Gary R. Wheeler13-Sep-03 3:34
Gary R. Wheeler13-Sep-03 3:34 
GeneralRe: program nt responding--error Pin
coda_x13-Sep-03 16:50
coda_x13-Sep-03 16:50 
GeneralQues regarding Icon and Button Pin
SatyaDY13-Sep-03 0:19
SatyaDY13-Sep-03 0:19 
GeneralRe: Ques regarding Icon and Button Pin
Larry J. Siddens13-Sep-03 3:39
Larry J. Siddens13-Sep-03 3:39 
General"string" question. Pin
WREY12-Sep-03 23:49
WREY12-Sep-03 23:49 
GeneralRe: "string" question. Pin
Larry J. Siddens13-Sep-03 3:37
Larry J. Siddens13-Sep-03 3:37 
GeneralRe: "string" question. Pin
Joaquín M López Muñoz13-Sep-03 6:13
Joaquín M López Muñoz13-Sep-03 6:13 
GeneralRe: "string" question. Pin
DougW4813-Sep-03 13:56
DougW4813-Sep-03 13:56 
GeneralHandling LVN_ITEMCHANGED message Pin
Md Saleem Navalur12-Sep-03 23:26
Md Saleem Navalur12-Sep-03 23:26 
GeneralRe: Handling LVN_ITEMCHANGED message Pin
Gary R. Wheeler13-Sep-03 3:47
Gary R. Wheeler13-Sep-03 3:47 
GeneralMessage Handlers for Menus in MFC Pin
cberam12-Sep-03 23:11
cberam12-Sep-03 23:11 
GeneralRe: Message Handlers for Menus in MFC Pin
Larry J. Siddens13-Sep-03 3:41
Larry J. Siddens13-Sep-03 3:41 
GeneralRe: Message Handlers for Menus in MFC Pin
Michael Dunn13-Sep-03 5:54
sitebuilderMichael Dunn13-Sep-03 5:54 
QuestionHow to copy strings? Pin
K7magi12-Sep-03 22:08
K7magi12-Sep-03 22:08 
AnswerRe: How to copy strings? Pin
Nish Nishant12-Sep-03 22:14
sitebuilderNish Nishant12-Sep-03 22:14 

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.