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

Search:

Type: Posts; User: DeepT

Page 1 of 55 1 2 3 4

Search: Search took 0.31 seconds.

  1. [RESOLVED] Trying to show some rich text in a dialog box.

    I have been told to show some text document when our application starts up, it is an EULA. They gave me a word file and I saved this file in a .rtf format. I then wish to show this in a dialog box...
  2. Re: Windows 8 phone or tablet programming questions

    Ok. So there is no way to write a program which will run indefinitely for a windows phone or tablet? I just want to confirm this.
  3. Windows 8 phone or tablet programming questions

    I have been asked to look into the feasibility of porting an application that runs on Windows 7 & 8 to work on Window 8 phones and tablets. Our current application is mostly a service and I do not...
  4. Abstract base class and subclasses question.

    In short what I want to do is have an Abstract Base class call a method implemented in a subclass. I am sure I have done this at some point in the past, but I can't remember how. Anyway some sample...
  5. Replies
    5
    Views
    3,117

    Re: How to handle WM_SHOWWINDOW in a base class

    Thanks, that worked.
  6. Replies
    5
    Views
    3,117

    Re: How to handle WM_SHOWWINDOW in a base class

    You mean this?
    Base Class:
    BEGIN_MESSAGE_MAP(CBubbleBaseDlg, CDialog)
    ON_WM_TIMER()
    ON_WM_SHOWWINDOW()
    END_MESSAGE_MAP()

    Subclass:
    BEGIN_MESSAGE_MAP(CVista7BubbleDlg, CDialog)...
  7. Replies
    5
    Views
    3,117

    How to handle WM_SHOWWINDOW in a base class

    The class hierarchy is CDialog -> BaseClass -> SubClass. BaseClass is abstract. Whenever an instance of SubClass is shown I want my BaseClass to capture the event and do something. This is the...
  8. Replies
    24
    Views
    9,485

    Re: ShellExecute crashes Dev Studio 2008 SP 1

    It is not unicode. Anyway Ill just put the debug macros around it and not execute it in my development environment. My app runs just fine when run stand-alone.
  9. Replies
    24
    Views
    9,485

    Re: ShellExecute crashes Dev Studio 2008 SP 1

    Ok, VictornN, I tried that exact code you pasted and it crashes Dev Studio 2008 in my project.

    This code:
    CString URL = _T("https://www.google.com");
    ShellExecute(NULL,NULL, (LPCTSTR)URL,...
  10. Replies
    24
    Views
    9,485

    Re: ShellExecute crashes Dev Studio 2008 SP 1

    No, i didn't try that in an application by itself. It is final step in my other app. I could paste that into a new app. If it crashes or does not, what does that tell me? Note this is crashing...
  11. Replies
    24
    Views
    9,485

    Re: ShellExecute crashes Dev Studio 2008 SP 1

    Ok, this code block also crashes Dev Studio 2008 and has nothing to do with CStrings:

    #define URL "https://www.google.com"

    int Len = strlen(URL);
    char Buff[1024] = {0};
    CopyMemory(...
  12. Replies
    24
    Views
    9,485

    Re: ShellExecute crashes Dev Studio 2008 SP 1

    I am Visual Studio 2008.
    I tried this:
    CString URL = "https://www.google.com";
    ShellExecute(NULL,NULL,(const char*)URL, NULL,NULL,SW_SHOW); and this also crashes Visual Studio 2008. Putting in...
  13. Replies
    24
    Views
    9,485

    Re: ShellExecute crashes Dev Studio 2008 SP 1

    2. To make sure I get the char * type of pointer. CString does this with a cast. I just want to make sure I end up with a pointer to a buffer of *char and not a reference to an object.
    3. I am...
  14. Replies
    24
    Views
    9,485

    Re: ShellExecute crashes Dev Studio 2008 SP 1

    Dev Studio is crashing. Not my application. I can't look at the call stack because the development environment crashes.
  15. Replies
    24
    Views
    9,485

    ShellExecute crashes Dev Studio 2008 SP 1

    I have a MFC Dialog based application, and when I get a certain user-defined windows message I do the following:
    ShellExecute(NULL,NULL,(const char*)WLC.Settings.FinishURL, NULL,NULL,SW_SHOW);
    ...
  16. "Add Class" greyed out on a dialog in the resource editor

    I have some dialogs I have been working on in the resource editor (Dev Studio 2008). In the past I could right click on the dialog and a menu would open and it would have an option, "Add Class"...
  17. Re: Use of MFC : Use Standard Windows Libraries What does this do?

    Yeah, I read that, and it doesn't really tell me anything. Logically if I had an MFC project then selecting that option would cause my program to not link or run because the MFC libraries are not...
  18. Use of MFC : Use Standard Windows Libraries What does this do?

    I have a basic MFC dialog based app. I see in the compiler options, one of the configuration options is the use of MFC. I see an option for static, shared DLL and Use Standard Windows libraries. ...
  19. Replies
    1
    Views
    3,506

    Re: FindWindowEX question

    Never mind, found the problem. The actual class name is "#32770" and the " (CDialog)" was something spy added.
  20. Replies
    1
    Views
    3,506

    [RESOLVED] FindWindowEX question

    I am looking to find a particular dialog box. I used the Spy tool and it gave me the class name for this dialog box as "#32770 (Dialog)". If I use FindWindowEx(NULL, NULL,"#32770 (Dialog)", NULL),...
  21. Re: Need help with Property Pages and Edit controls

    I found the answer in this Microsoft article:
    http://support.microsoft.com/kb/148388

    I got lucky with my google fu. Now to try and find the answer to the 2nd question.
  22. Re: Need help with Property Pages and Edit controls

    I did :

    BOOL PropPageHello::OnSetActive()
    {
    BOOL Ret = CPropertyPage::OnSetActive();

    EditUserName.SetFocus();

    return Ret;
    }
  23. Re: Need help with Property Pages and Edit controls

    Tried it and it didn't work.
  24. Need help with Property Pages and Edit controls

    I have two problems.

    1. When a certain property page is shown, I want a particular edit box to have focus. I am not sure how to do this, but I tried:

    BOOL PropPageHello::OnSetActive()
    {...
  25. Thread: Design issue

    by DeepT
    Replies
    31
    Views
    13,729

    Re: Design issue

    DOH!

    Thanks. I didn't even notice that.
Results 1 to 25 of 1366
Page 1 of 55 1 2 3 4





Click Here to Expand Forum to Full Width

Featured