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

Search:

Type: Posts; User: phild

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    4,329

    Re: Issue with CreateInstance and E_NOINTERFACE

    Hi Vanaj,

    Thank you for the response... this is been an issue for me for several days.

    Quick question. This particular solution deals with backward compatibility. Ie going from a win7...
  2. Replies
    3
    Views
    5,809

    Re: Issue with CreateInstance and E_NOINTERFACE

    Sorry.

    Reposted.

    Admin: Please deletes this thread.

    Thanks
    Phil
  3. Replies
    5
    Views
    4,329

    Issue with CreateInstance and E_NOINTERFACE

    Hi,

    I have a piece code which I wrote several years ago. This code was written on a XP system with VS2005.

    The code worked fine and in fact the existing .exe still works fine on some machines....
  4. Replies
    3
    Views
    5,809

    Issue with CreateInstance and E_NOINTERFACE

    Admin: Please delete
  5. Replies
    6
    Views
    4,347

    Re: Overriding OpenDocumentFile

    Need additional help, please.

    OK, looking at what I did from above, I am now in CTestApp, which is good. From here I need to get a pointer back to my CTEstDoc, so I can call my own serialize...
  6. Replies
    6
    Views
    4,347

    Re: Overriding OpenDocumentFile

    Thanks guys for responding.

    Let me try and explain what I am trying to do:

    I am trying to serialize my doc data using xml. To do this, I need to intercept the standard process within...
  7. Replies
    6
    Views
    4,347

    Overriding OpenDocumentFile

    I am trying to override OpenDocumentFile. I have created a simple MIDI application with a virtual OpenDocumentFile. I would expect this function to get control when ever I try to open a file, but...
  8. Thread: Timer issue

    by phild
    Replies
    18
    Views
    2,558

    Re: Timer issue

    Kirants, GCDEF and all who helped,

    That is exactly what the issue was, the object had a VERY short lifetime.

    Well, learn a Little more every day.

    Thanks Again
  9. Thread: Timer issue

    by phild
    Replies
    18
    Views
    2,558

    Re: Timer issue

    GCDEF, thanks for your continued help and assistance.... :)

    As you can see in the code below, I have tried both using my own TIMERPROC and using the system provided onTimer, neither of which work....
  10. Thread: Timer issue

    by phild
    Replies
    18
    Views
    2,558

    Re: Timer issue

    Thanks GCDEF

    Ok, at least I no longer get the Debug Assert, however, my onTimer handler never gets executed. It would appear that the messages are not getting into my class???


    CMotor...
  11. Thread: Timer issue

    by phild
    Replies
    18
    Views
    2,558

    Re: Timer issue

    ok, its not a window :)

    It is an object.

    is there a way to cause it to have a window handle, or a way to allow it to receive WM_TIMER messages?
  12. Thread: Timer issue

    by phild
    Replies
    18
    Views
    2,558

    Re: Timer issue

    This is the CMotor.h



    #pragma once


    // CMotor dialog

    class CMotor : public CDialog
  13. Thread: Timer issue

    by phild
    Replies
    18
    Views
    2,558

    Re: Timer issue

    { ASSERT(::IsWindow(m_hWnd)); return ::SetTimer(m_hWnd, nIDEvent, nElapse,
    lpfnTimer); }

    ok, that is line 182.


    So, it does appear that I don't have a valid widow handle, but why.

    I...
  14. Thread: Timer issue

    by phild
    Replies
    18
    Views
    2,558

    Re: Timer issue

    Kirants,

    CMotor is derived from CDialog and so should have a valid handle.

    CGDEF,

    When I try to debug, it appears I don't have the source. The assertion occurs in afxwin2.inl line 182.
  15. Thread: Timer issue

    by phild
    Replies
    18
    Views
    2,558

    Re: Timer issue

    Sorry, perhaps I was not too clear. The handler and the SetTimer call are in the same class called CMotor. The SetTimer call is in a public function called EnableMotor belonging to CMotor. The...
  16. Thread: Timer issue

    by phild
    Replies
    18
    Views
    2,558

    Timer issue

    I have a simple dialog test application written as an MFC app under Visual Studio .Net.

    I have a simple class, with a ON_WM_TIMER() and the associated OnTimer() function. I also have a public...
  17. Thread: onChar

    by phild
    Replies
    8
    Views
    1,042

    Re: onChar

    Sun_raman, I don't seem to be able to PM you, if you can, email me or post the example on line.

    Kirants, thank you, I read in detail the link you sent and the sublinks... so it can be done, but if...
  18. Thread: onChar

    by phild
    Replies
    8
    Views
    1,042

    Re: onChar

    Yes, please, an example would be really helpful :-)

    I will PM you with my email address.

    Thanks Sun_raman
    Phil
  19. Thread: onChar

    by phild
    Replies
    8
    Views
    1,042

    Re: onChar

    Kirants,

    Thanks again. I have tried the WM_KEYDOWN message with a similar result to WM_CHAR.... ie nothing.

    No, I need to do more than the default dialog box behavior.

    Do you think...
  20. Thread: onChar

    by phild
    Replies
    8
    Views
    1,042

    Re: onChar

    Kirants,

    thanks for the reply.

    Actually no, I want to be able to catch 'return key', 'numerical pad return key', 'tab' keys etc, from anywhere. For example, if a button is focused and return...
  21. Thread: onChar

    by phild
    Replies
    8
    Views
    1,042

    onChar

    Hi,

    within a dialog, which has several edit boxes and buttons, I have defined a message handler for WM_CHAR using the class wizard. This creates

    void CKeyFromSource::OnChar(UINT nChar, UINT...
Results 1 to 21 of 21





Click Here to Expand Forum to Full Width

Featured