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

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 2.51 seconds.

  1. Replies
    18
    Views
    19,443

    Re: MFC Dialog box not working - VC6 upgrade

    My personal experience is that I don't use MFC to handle resources that are found in other modules. I create DLL's (non-MFC DLL's) that need resources loaded from other DLL's, and I have never used...
  2. Replies
    18
    Views
    19,443

    Re: MFC Dialog box not working - VC6 upgrade

    And 0xd0 in the FindResource is 208, so the dialog being searched for is correct, in terms of ID.

    Therefore the most probable reason is what Vladimir and myself pointed out -- the module where...
  3. Replies
    18
    Views
    19,443

    Re: MFC Dialog box not working - VC6 upgrade

    Yep, we're thinking on the same level. The MFC way to do the LoadLibrary is the AFX_MANAGE_STATE.

    Regards,

    Paul McKenzie
  4. Replies
    18
    Views
    19,443

    Re: MFC Dialog box not working - VC6 upgrade

    Where does the code come from in your first post? The resource certainly cannot be found in that module where the code you posted comes from.

    A DLL that contains resources must be loaded at...
  5. Replies
    18
    Views
    19,443

    Re: MFC Dialog box not working - VC6 upgrade

    What is the resource ID of the dialog? Is it numeric, or is it a string name?

    Regards,

    Paul McKenzie
  6. Replies
    18
    Views
    19,443

    Re: MFC Dialog box not working - VC6 upgrade

    If you do a File / Open in Visual Studio, and you open the DLL file you claim has the resource, the DLL file will be loaded, and you will see the resources.

    Regards,

    Paul McKenzie
  7. Replies
    18
    Views
    19,443

    Re: MFC Dialog box not working - VC6 upgrade

    What is the value of hInst? Is it the handle to the module that contains the dialog resource? If not, that is the reason for the error.

    What is m_lpszTemplateName? Is it the name of the dialog...
  8. Replies
    18
    Views
    19,443

    Re: MFC Dialog box not working - VC6 upgrade

    The code you posted will not help, as all it does is show us that your syntax is OK. It doesn't tell us what is happening at runtime or anything else that would give any indication what the problem...
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured