Click here to Skip to main content
15,914,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPATH environment variable false in VC++! Pin
Nolyann6-Sep-06 21:37
Nolyann6-Sep-06 21:37 
Question[Message Deleted] [modified] Pin
kanitamildasan6-Sep-06 21:36
kanitamildasan6-Sep-06 21:36 
AnswerRe: e-mail client storage suggestions Pin
Waldermort6-Sep-06 22:30
Waldermort6-Sep-06 22:30 
GeneralRe: e-mail client storage suggestions Pin
kanitamildasan6-Sep-06 23:52
kanitamildasan6-Sep-06 23:52 
AnswerRe: e-mail client storage suggestions Pin
Rob Caldecott7-Sep-06 0:17
Rob Caldecott7-Sep-06 0:17 
GeneralRe: e-mail client storage suggestions Pin
kanitamildasan7-Sep-06 0:42
kanitamildasan7-Sep-06 0:42 
GeneralRe: e-mail client storage suggestions Pin
kanitamildasan7-Sep-06 19:07
kanitamildasan7-Sep-06 19:07 
Questionsaving particular data in txt file [modified] Pin
With_problem6-Sep-06 21:34
With_problem6-Sep-06 21:34 
I want to save only three 1)EURUSD,2)USDJPY,3)GBPUSD
market data coming from remote server in a txt file .But in this code all the market data are saved.How to save only paricular data.
I have write a comment line before 'if' statement where i have problem for this.

<br />
void CWartz_newDlg::OnPriceChangeArielapictrl1(LPCTSTR SessionId, LPCTSTR RequestId, short MarketNo, LPCTSTR Market, LPCTSTR Bid, short BidDirection, LPCTSTR Ask, short AskDirection, LPCTSTR High, LPCTSTR Low, short MarketState, LPCTSTR Timestamp) <br />
{<br />
	// TODO: Add your control notification handler code here<br />
<br />
<br />
	sessionid=SessionId;<br />
	CurrentRequestId=RequestId;<br />
	CString MarketSt,a,b,c,d;<br />
<br />
	a.Format("%d",MarketNo);<br />
	b.Format("%c",BidDirection);<br />
	c.Format("%c",AskDirection);<br />
	iMarketNo=MarketNo;<br />
	aMarketNo.Add(MarketNo);<br />
     <br />
	d.Format("%d",MarketState);<br />
<br />
	m_MainEdit=m_MainEdit + "<Price Change>" + SessionId + "\t" + RequestId +"\t"+ a ; <br />
	m_MainEdit=m_MainEdit + "\t"+ Market + "\t" + Bid + "\t" + b + "\t"+ Ask + "\t" +c +"\t"+ High + "\t";<br />
	m_MainEdit=m_MainEdit + Low + "\t" + d +"\t" + Timestamp + "\r\n";<br />
<br />
     UpdateData(FALSE);<br />
	iLineCount=m_EditCtrl.GetLineCount();<br />
	m_EditCtrl.LineScroll(iLineCount);<br />
<br />
          <br />
//  All the market data is saving<br />
// i only want to save EURUSD market data to be saved in txt file not all<br />
           <br />
          	<br />
	if(Market="EURUSD",myfile.Open("EurUsd.txt",CFile.modeCreate | CFile.modeWrite))<br />
	{<br />
      <br />
	LPSTR buf;<br />
	  int i = m_MainEdit.GetLength();<br />
	 buf = m_MainEdit.GetBuffer(i);<br />
	 myfile.Write(buf,i);<br />
	 myfile.Close();<br />
	}<br />
}<br />


And like this way i have to make three txt file:

1)EURUSD.txt
2)USDJPY.txt
3)GBPUSD.txt

Thanks. Pls help me





-- modified at 4:51 Thursday 7th September, 2006
AnswerRe: saving particular data in txt file Pin
Rinu_Raj6-Sep-06 21:57
Rinu_Raj6-Sep-06 21:57 
GeneralRe: saving particular data in txt file Pin
With_problem6-Sep-06 22:07
With_problem6-Sep-06 22:07 
GeneralRe: saving particular data in txt file Pin
Hamid_RT6-Sep-06 22:32
Hamid_RT6-Sep-06 22:32 
GeneralRe: saving particular data in txt file Pin
With_problem6-Sep-06 22:47
With_problem6-Sep-06 22:47 
GeneralRe: saving particular data in txt file Pin
Hamid_RT7-Sep-06 0:47
Hamid_RT7-Sep-06 0:47 
GeneralRe: saving particular data in txt file Pin
David Crow7-Sep-06 4:19
David Crow7-Sep-06 4:19 
QuestionRe: saving particular data in txt file Pin
David Crow7-Sep-06 4:17
David Crow7-Sep-06 4:17 
AnswerRe: saving particular data in txt file Pin
David Crow7-Sep-06 4:15
David Crow7-Sep-06 4:15 
QuestionIs it possible to Is it possible to open the file (in harddisk) programmatically from CD?. Pin
Arul Joseph6-Sep-06 21:34
Arul Joseph6-Sep-06 21:34 
AnswerRe: Is it possible to Is it possible to open the file (in harddisk) programmatically from CD?. Pin
Hamid_RT6-Sep-06 21:36
Hamid_RT6-Sep-06 21:36 
AnswerRe: Is it possible to Is it possible to open the file (in harddisk) programmatically from CD?. Pin
Programm3r6-Sep-06 21:39
Programm3r6-Sep-06 21:39 
AnswerRe: Is it possible to Is it possible to open the file (in harddisk) programmatically from CD?. Pin
Waldermort6-Sep-06 22:01
Waldermort6-Sep-06 22:01 
AnswerRe: Is it possible to Is it possible to open the file (in harddisk) programmatically from CD?. Pin
Rilhas8-Sep-06 9:12
Rilhas8-Sep-06 9:12 
QuestionMesage Handler function Pin
chakor1236-Sep-06 21:32
chakor1236-Sep-06 21:32 
AnswerRe: Mesage Handler function Pin
Rinu_Raj6-Sep-06 22:23
Rinu_Raj6-Sep-06 22:23 
QuestionRe: Mesage Handler function Pin
prasad_som6-Sep-06 22:48
prasad_som6-Sep-06 22:48 
AnswerRe: Mesage Handler function Pin
chakor1236-Sep-06 23:26
chakor1236-Sep-06 23:26 

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.