CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: CreateDialog

  1. #1
    Join Date
    Mar 2007
    Posts
    45

    CreateDialog

    Ive been using this function fine, but all of a sudden it has stopped working for me, ....and only in Debug??? basically everything works fine in release mode, but when i do a debug build, i get the following error after the call to createdialog

    @err,hr 0x00000714 The specified image file did not contain a resource section. unsigned long

    im using the line - CreateDialog( mInstance, L"IDD_test", mhApp, MediaLoadingProc);

    Heres what ive tested, but i still cant get it to work

    1. Works fine in release, but not in debug, (above error, and no window created)
    2. mInstance is valid, as windows are created directly before and directly after this call, and they work fine, (all calls in the same function)
    3. Same as above with mhApp
    4. Performed many rebuilds
    5. Even started a new project and copied across all the .h and .cpp files, and created a new .rc file

    any ideas?
    this is driving me nuts

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: CreateDialog

    This maybe something wrong with the Project Debug Configuration: no resource, or something causing resource compile error
    @err,hr 0x00000714 The specified image file did not contain a resource section.
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured