CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Rick O'Shea

Page 1 of 7 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    1
    Views
    524

    Instead of: ...

    Instead of:

    ShellExecute(NULL,"open",myfilename,NULL,NULL,SW_SHOWNORMAL);

    try this:

    ShellExecute(NULL, "open", "iexplore.exe", myfilename, "", SW_SHOWNORMAL);
  2. The CButtonST control is outstanding, and lets...

    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
  3. Replies
    22
    Views
    2,426

    Paul, You're obviously a lot more...

    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,...
  4. Replies
    22
    Views
    2,426

    In your CCharacter class, create a function such...

    In your CCharacter class, create a function such as this:

    void CCharacter:: operator = (CCharacter& Character)
    {
    m_nOnePieceOfData = Character.m_nOnePieceOfData;
    m_strAnother =...
  5. Replies
    22
    Views
    2,426

    I might be wrong, and I'm certainly no guru, but...

    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?
  6. Thread: ComboBox

    by Rick O'Shea
    Replies
    1
    Views
    504

    Try this: int nSelected =...

    Try this:

    int nSelected = m_ComboBox.GetCurSel();

    It's the same for CListBox as well...
  7. Thread: ListBox

    by Rick O'Shea
    Replies
    1
    Views
    487

    To get the index number that is currently...

    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
  8. Replies
    5
    Views
    633

    This line: ...

    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 '\\'
  9. Replies
    4
    Views
    765

    Doh! I guess I mistyped my reply, because I...

    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.
  10. Replies
    4
    Views
    765

    In this bit of code: there should be...

    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...
  11. Thread: ifstream

    by Rick O'Shea
    Replies
    6
    Views
    1,429

    Just a side note... If you're using ifstream...

    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,...
  12. Replies
    5
    Views
    822

    I believe so. The easiest way is to derive a...

    I believe so. The easiest way is to derive a class from CListView and do your coding in that class....
  13. Replies
    0
    Views
    473

    Reloading Current Document

    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...
  14. Replies
    4
    Views
    738

    Did you derive CMyDlg from CDialog? Also, you...

    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...
  15. Replies
    4
    Views
    703

    Thanks for the suggestions, everybody. I got...

    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...
  16. Replies
    4
    Views
    703

    Help, Please, Re: FindFirstFile

    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...
  17. Replies
    4
    Views
    762

    Dafna, Have you tried SetWindowText()? You...

    Dafna,

    Have you tried SetWindowText()?

    You might try this:


    this->SetWindowText("Your Caption Here");

    or, to make it blank
  18. Use safe mode, then after loading windows loads...

    Use safe mode, then after loading windows loads all the way, restart your computer again. Things should be back to normal.
  19. Replies
    10
    Views
    1,235

    This isn't really an answer, more of a...

    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...
  20. Replies
    2
    Views
    769

    This might help: ...

    This might help:

    http://www.codeguru.com/atl/SpeakText.html
  21. Replies
    2
    Views
    1,544

    searchValue is the pointer whose position you're...

    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...
  22. Replies
    10
    Views
    1,127

    First of all, thanks to all of y'all for your...

    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...
  23. Replies
    10
    Views
    1,127

    Paul- I've tried that, to no avail as to...

    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...
  24. Replies
    10
    Views
    1,127

    Alan- Thanks for the advice. I'm not too...

    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.
    ...
  25. Replies
    10
    Views
    1,127

    Hmmm... Call Stack sends me to this line: ...

    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...
Results 1 to 25 of 165
Page 1 of 7 1 2 3 4





Click Here to Expand Forum to Full Width

Featured