Click here to Skip to main content
16,004,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Media Player (VC++) Pin
prasad_som12-Feb-07 22:23
prasad_som12-Feb-07 22:23 
QuestionRe: Media Player (VC++) Pin
Programm3r12-Feb-07 22:30
Programm3r12-Feb-07 22:30 
AnswerRe: Media Player (VC++) Pin
Anilkumar K V12-Feb-07 22:34
Anilkumar K V12-Feb-07 22:34 
GeneralRe: Media Player (VC++) Pin
prasad_som12-Feb-07 22:39
prasad_som12-Feb-07 22:39 
GeneralRe: Media Player (VC++) Pin
Programm3r12-Feb-07 22:42
Programm3r12-Feb-07 22:42 
AnswerRe: Media Player (VC++) Pin
Programm3r12-Feb-07 22:34
Programm3r12-Feb-07 22:34 
GeneralRe: Media Player (VC++) Pin
Hamid_RT13-Feb-07 4:01
Hamid_RT13-Feb-07 4:01 
QuestionDisplay a graph in a dialog Pin
Aint12-Feb-07 22:06
Aint12-Feb-07 22:06 
Hi.

I am trying to display a graph in a dialog with data input from a file which i have put it in an array. How do i display the array with its data as the y-axis? This is what I have gotten so far and I am stuck here.
<br />
void CCTestDlg::OnOpenfile() <br />
{<br />
	ifstream file;<br />
	short data[10240];<br />
    int iI;<br />
<br />
    static char szFilter[] = "Binary files (*.bin)|*.bin|All files (*.*)|*.*||";<br />
<br />
	DWORD dwFlags =  OFN_HIDEREADONLY | OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST;<br />
<br />
	CFileDialog m_ldFile(TRUE, ".bin", NULL, dwFlags, szFilter);<br />
<br />
    if (m_ldFile.DoModal() == IDOK)<br />
    {<br />
		m_filePath = m_ldFile.GetPathName();<br />
<br />
		file.open (m_filePath, ios::in|ios::binary);<br />
<br />
		if (file.is_open())<br />
		{<br />
			for (iI = 0; iI < 10240; iI++)<br />
			{<br />
				data[iI] = file.get();<br />
			}<br />
<br />
			file.close();<br />
		}<br />
    }<br />
}<br />

If in SDI, there is a OnDraw() function but how do I do it in a dialog?
Thanks in advance.
AnswerRe: Display a graph in a dialog Pin
toxcct12-Feb-07 22:18
toxcct12-Feb-07 22:18 
AnswerRe: Display a graph in a dialog Pin
jhwurmbach12-Feb-07 22:23
jhwurmbach12-Feb-07 22:23 
GeneralRe: Help in picture control Pin
Aint14-Feb-07 14:07
Aint14-Feb-07 14:07 
GeneralRe: Help in picture control Pin
jhwurmbach14-Feb-07 21:47
jhwurmbach14-Feb-07 21:47 
QuestionGetting attached device names with system in VC++ Pin
Karismatic12-Feb-07 22:04
Karismatic12-Feb-07 22:04 
AnswerRe: Getting attached device names with system in VC++ Pin
Waldermort12-Feb-07 23:05
Waldermort12-Feb-07 23:05 
Questiondevice driver list Pin
deeps_cute12-Feb-07 21:49
deeps_cute12-Feb-07 21:49 
QuestionDifferences??? Pin
ashwath197912-Feb-07 21:42
ashwath197912-Feb-07 21:42 
AnswerRe: Differences??? Pin
_AnsHUMAN_ 12-Feb-07 21:57
_AnsHUMAN_ 12-Feb-07 21:57 
GeneralRe: Differences??? Pin
ashwath197912-Feb-07 22:13
ashwath197912-Feb-07 22:13 
GeneralRe: Differences??? Pin
toxcct13-Feb-07 0:25
toxcct13-Feb-07 0:25 
GeneralRe: Differences??? Pin
ashwath197912-Feb-07 22:14
ashwath197912-Feb-07 22:14 
GeneralRe: Differences??? Pin
toxcct12-Feb-07 22:25
toxcct12-Feb-07 22:25 
GeneralRe: Differences??? Pin
ashwath197912-Feb-07 22:33
ashwath197912-Feb-07 22:33 
GeneralRe: Differences??? Pin
toxcct12-Feb-07 22:39
toxcct12-Feb-07 22:39 
GeneralRe: Differences??? Pin
ashwath197913-Feb-07 0:19
ashwath197913-Feb-07 0:19 
QuestionGetchar and getche problem Pin
sachin ahuja12-Feb-07 21:26
sachin ahuja12-Feb-07 21: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.