Search:
Type: Posts; User: Rick O'Shea
Search:
Search took 0.18 seconds.
-
October 26th, 2003, 04:56 AM
Instead of:
ShellExecute(NULL,"open",myfilename,NULL,NULL,SW_SHOWNORMAL);
try this:
ShellExecute(NULL, "open", "iexplore.exe", myfilename, "", SW_SHOWNORMAL);
-
October 19th, 2003, 06:03 PM
The CButtonST control is outstanding, and lets you put text and bitmaps and icons where you want them.
www.codeguru.com/buttonctrl/flat_button3.shtml
-
October 19th, 2003, 02:11 AM
Paul,
You're obviously a lot more knowledgeable than I am, but I wanted to ask you about that...
I've always returned void in an operator = function, and it's never been a problem. In fact,...
-
October 18th, 2003, 10:52 AM
In your CCharacter class, create a function such as this:
void CCharacter:: operator = (CCharacter& Character)
{
m_nOnePieceOfData = Character.m_nOnePieceOfData;
m_strAnother =...
-
October 18th, 2003, 10:39 AM
I might be wrong, and I'm certainly no guru, but even with all those data members, wouldn't the easiest thing still be to overload the operator = function?
-
October 18th, 2003, 04:08 AM
Try this:
int nSelected = m_ComboBox.GetCurSel();
It's the same for CListBox as well...
-
October 18th, 2003, 04:00 AM
To get the index number that is currently selected, just do this:
int nSelected = m_ListBox.GetCurSel();
That's assuming, of course, that you have a CListBox variable entitled m_ListBox
-
October 18th, 2003, 03:59 AM
This line:
D:\Working_on_Basswaves\mp3class\res
Should be as follows:
D:\\Working_on_Basswaves\\mp3class\\res
because in the character that produces \ is actually '\\'
-
October 12th, 2003, 04:06 PM
Doh!
I guess I mistyped my reply, because I was indeed trying to say that the formatting should be:
\'%s\' rather than '%s'
Nice catch.
-
October 11th, 2003, 12:00 AM
In this bit of code:
there should be another ) before the semi-colon, and instead of '%s', it should read:
\'%s\'
because in order to have a single quote mark: '
in a CString, you need...
-
September 30th, 2003, 04:26 PM
Just a side note...
If you're using ifstream in an MFC application, you need to include as <fstream.h>, rather than just <fstream>.
ofstream and ifstream are easy to use when writing a file,...
-
September 20th, 2003, 09:16 AM
I believe so. The easiest way is to derive a class from CListView and do your coding in that class....
-
September 17th, 2003, 02:14 PM
Hello gurus....
I'm trying to make the app (SDI) reload the current document when it's changed by an outside editor (similar to what Visual Studio will do).
I've tried this:
CString strThis...
-
September 17th, 2003, 02:24 AM
Did you derive CMyDlg from CDialog?
Also, you might just try this:
CMyDlg dlg;
dlg.DoModal();
since the resource ID should be enumerated in your Dialog class, you should be able to just...
-
September 17th, 2003, 02:11 AM
Thanks for the suggestions, everybody.
I got another suggestion via e-mail, which I ended up implementing and it works. That suggestion was to convert the FILETIME structures to CTimes, and...
-
September 16th, 2003, 05:45 PM
Hello...
I'm trying to make my app recognize that the current document has been changed by another editor, and alert the user (similar to the way Visual Studio will alert you if you change a file...
-
August 17th, 2003, 11:03 AM
Dafna,
Have you tried SetWindowText()?
You might try this:
this->SetWindowText("Your Caption Here");
or, to make it blank
-
June 15th, 2003, 11:30 AM
Use safe mode, then after loading windows loads all the way, restart your computer again. Things should be back to normal.
-
This isn't really an answer, more of a question/suggestion...
I've never tried this, but I wonder if it might work.
I know you can get a pointer to each edit control in the ListCtrl, in order...
-
This might help:
http://www.codeguru.com/atl/SpeakText.html
-
searchValue is the pointer whose position you're trying to find.
The function will return the position of that pointer in the list.
For example, if pStudent is a CStudent* which is being stored...
-
First of all, thanks to all of y'all for your advice.
In the process of getting this bad boy to work, I learned a little bit about how to better use the Debugger tools, which is nice.
I also...
-
April 30th, 2003, 03:06 PM
Paul-
I've tried that, to no avail as to the problem...
The best I can tell, in one of the apps, the problem is occurring in CPropertyPage::DoDataExchange.
On this particular app, the...
-
April 30th, 2003, 02:26 PM
Alan-
Thanks for the advice. I'm not too experienced with the debugger, as is obvious from my newbie questions, and I appreciate the help.
I'll give it a try, with the info you've given me.
...
-
April 30th, 2003, 10:24 AM
Hmmm...
Call Stack sends me to this line:
MFC42! 6c37240a()...
Optimization is on Disable (Debug) for Debug mode, Maximum Speed for Release Mode...
I can't find any common theme as far as...
|
Click Here to Expand Forum to Full Width
|