Why not GetOpenFileName()

This topic contains 1 reply, has 2 voices, and was last updated by  chris 5 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30890

    Hello everyone,

    I’m making a Tool that is excuted in WindowsX86-32bit.
    I only want to use ‘GetOpenFileName‘ or ‘ GetSaveFileName‘. (WinAPI funcion)

    but when I execute my program,

    First-chance exception at 0x7c949af2 in Tool.exe: 0xC0000005: Access violation writing location 0x00000010.
    First-chance exception at 0x7c7e2afb in Tool.exe: Microsoft C++ exception: std::runtime_error at memory location 0x0012f89c..
    First-chance exception at 0x7c9973be in Tool.exe: 0xE06D7363: Microsoft C++ Exception.
    ‘Tool.exe’: Unloaded ‘E:WINDOWSsystem32opengl32.dll’
    ‘Tool.exe’: Unloaded ‘E:WINDOWSsystem32ddraw.dll’
    ‘Tool.exe’: Unloaded ‘E:WINDOWSsystem32dciman32.dll’
    ‘Tool.exe’: Unloaded ‘E:WINDOWSsystem32glu32.dll’
    PVR: Failed to set pixel format for dummy PFD
    Unhandled exception at 0x7c9973be in Tool.exe: 0xE06D7363: Microsoft C++ Exception.

     I also  tryed to call ‘GetOpenFileName’  in ‘TrainingCourse/02_IntroducingPVRShell‘.

    ‘OGLES2IntroducingPVRShell.exe’: Unloaded ‘E:WINDOWSsystem32opengl32.dll’
    ‘OGLES2IntroducingPVRShell.exe’: Unloaded ‘E:WINDOWSsystem32ddraw.dll’
    ‘OGLES2IntroducingPVRShell.exe’: Unloaded ‘E:WINDOWSsystem32dciman32.dll’
    ‘OGLES2IntroducingPVRShell.exe’: Unloaded ‘E:WINDOWSsystem32glu32.dll’
    PVR: Failed to set pixel format for dummy PFD
    Unhandled exception at 0x7c9973be in OGLES2IntroducingPVRShell.exe: 0xE06D7363: Microsoft C++ Exception.

    my development environment is
          WinodwsXP 32bit
          Microsoft Visual Studio 10
          OGLES2_WINDOWS_X86EMULATION_REL_2.10@863987.msi

     What’s problem? Cry
    Please help me.

    #35885

    chris
    Moderator

    Hi athena, sorry for the delay but I haven’t managed to reproduce the error you are describing. Are you sure the exception is thrown during the call to GetOpenFileName() and not before or after? If you could provide some example code which exhibits the problem that could help us track down the problem.

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.