CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2011
    Location
    India
    Posts
    333

    [RESOLVED] Run Time Error

    Hi,

    I'm using Windows 8 Enterprise 64 bit with VS 2012.
    I was developed an application. It was runs in the same PC(Win 8) with out any error.
    I like to run this application in Windows 7 64 bit PC. This Win 7 Pc doesn't have Visual Studio.
    When i was run the application, run time error occured.
    ERROR:
    "The application was unable to start correctly 0xc000007b. Click Ok to close the application"

    How to solve this problem? pls help me.
    Regards,

    SaraswathiSrinath

  2. #2
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: Run Time Error

    Maybe a DLL file is missing, try installing Visual C++ 2012 redistributable package from Microsoft.
    Nobody cares how it works as long as it works

  3. #3
    Join Date
    Nov 2011
    Location
    India
    Posts
    333

    Re: Run Time Error

    Already tried, but same error.
    You are correct. Finally i am found, the problem where occurs.
    I was saved the CDC as a bitmap file using Imageload.dll.
    I was removed that part of code, then my application was run in the win7 PC.

    how can i use Imageload.dll, or any other way to save CDC as a bitmap.

    What is the solution for this problem?
    Regards,

    SaraswathiSrinath

  4. #4
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: Run Time Error

    Nobody cares how it works as long as it works

  5. #5
    Join Date
    Nov 2011
    Location
    India
    Posts
    333

    Re: Run Time Error

    Problem identified. Problem was not occur using CImage & CImage objects.
    I'm using my child dialog as Modeless in my application.

    If i hide this code and compiled, then run in win 7 PC means, no error occured.
    any restrictions for use the below code.
    Code:
            ChildOpen* m_pModeless = NULL; 
            if (!m_pModeless)
                m_pModeless = new ChildOpen;
        
            if (!::IsWindow(m_pModeless->GetSafeHwnd()))
                m_pModeless->Create(ChildOpen::IDD, this);
     
            m_pModeless->ShowWindow(SW_SHOW);
    Then i tried the below code for modeless, problem solved.
    Code:
    ChildOpen *m_pmodeless = new ChildOpen(this);
    m_pmodeless->Create(ChildOpen::IDD);
    m_pmodeless->ShowWindow(SW_SHOW);
    Last edited by saraswathisrinath; May 10th, 2014 at 12:03 AM. Reason: update solution
    Regards,

    SaraswathiSrinath

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