hello Guys i am new here and also New to Visual C++
my task is to make Dialouge based application in MFC, that take text file and read it. and interfacing with hardware. i learn some thing i a, able to that. can anyone help me to tell from where i can learn these thing especially. i will very thankful to you.
...
my task is to make Dialouge based application in MFC, that take text file and read it. and interfacing with hardware...
Well, your first step is creating the dialog App.
The second - read text file. I'd suggest using MFC classes CString to store the text and CStdioFile to read in.
After you'll be complete these steps we'll be going on with the next task ("nterfacing with hardware" which is not clear for me yet)
First I have to write some thing in text file then read that file and load to List Box..
// This button will input the Data into the File
void Cfile1Dlg::OnClickedBtnExcute()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
fout.open("test.txt");
int temp1;
CString str;
str.Format(_T("abc"));
// This buuton will take the data from file and load to Listbox.
void Cfile1Dlg::OnBnClickedOuput()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
ifstream fin;
fin.open("test.txt");
int temp1,Numb1;
//m_List1.GetItemData(m_regno);
while (!fin.eof())
{
fin >> temp1;
please tell where am doing mistake because its not giving required output.
How can I tell you about the "mistake" if you didn't mention what all these identificators (like m_Name, m_Regno, m_Cellno, m_List1, m_res) mean, and what the purpose these lines
Thanks for your reply .
you are rite am really doing all my self, i am very new to this and icant find anything related to this in Google.can you help me in just tell me any book or site which helps me in doing this.
Thanks for your reply .
you are rite am really doing all my self, i am very new to this and icant find anything related to this in Google.can you help me in just tell me any book or site which helps me in doing this.
I'm not up on all the latest books, but go to any good book store that has a programming section. There should be several beginners books aimed at Visual Studio 2010 and MFC apps. There's way too much to learn to try to figure it out on your own. I wouldn't even try Google for programming lessons. Most books are over 1,000 pages long for a reason. They'll guide you step by step on what you need to know.
Thanks. But may be i didnt find it correctly but am doing my best to find some books relted to that.. but i didnt.
if any one of you know any material which help me.i will be very very Thankful to him
Thanks. But may be i didnt find it correctly but am doing my best to find some books relted to that.. but i didnt.
if any one of you know any material which help me.i will be very very Thankful to him
Bookmarks