This is easily done using either a dialog or formview. I'm basing this on VC++ 6.0, the sequence is a little different in .NET but you will end up with the same steps in a slightly different way.
Create a dialog application and start adding buttons (this is the hard part). Change the text on...
It's very easy for a listbox. Do the following:
Create a listbox and create a variable for it, something like m_list.
Give the dialog a title like 'Directory List' or anything else descriptive.
In the OnInitDialog section of the dialog, type this in:
m_list.Dir(0X0000, "*.*");
This will list...
The quick, dirty way to do what you want would be to use the View class.
Create a dialog resource and hit Ctrl-W. Name your class whatever you like and accept the default Dialog base class.
Now go to your View class OnInitialUpdate function. Declare a variable of your dialog class, for...
C++ can be used to create databases by using a struct or class to hold the data.
Even better than that is the ability of VC++ (which I assume you are using since you are on the VC++ forum) to work as a front-end for a database. I always use Access since it is so widely used. By using the...
Visual C++.Net is available separately. You can get it in Standard, Professional or Enterprise editions. I bought the Standard edition on Amazon. It is not just a re-hash of VC++ 6.0 as it requires that you install the .Net components. Be warned, also, that it will not install the .Net...
Look in the resource view at the identifier for the control (something like IDC_BUTTON1). Then use the following:
GetDlgItem(IDC_BUTTON1)->ShowWindow(FALSE);
brudnakm is right on about the string. You may also want to be careful mixing members of the fgets() and scanf() tribes. Used together, you may get unexpected results (usually losing characters).
Might be better (especially when receiving user) input to use fgets() throughout and convert the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.