使用SDL2中SDL_CreateWindow()函数时报错跳进wincore.cpp(wntdll.pbd not load)

这一般是在使用MFC时会出现的问题
抛出错误:Unhandled exception at 0x77784460 (ntdll.dll) in ffmpeg.exe: 0xC000041D: 用户回调期间遇到未经处理的异常。
因为SDL和MFC在同一条线程上,
SDL_Window *screen =SDL_CreateWindow ("123",SDL_WINDOWPOS_UNDEFINED,SDL_WINDOWPOS_UNDEFINED, screen_w, screen_h, SDL_WINDOW_OPENGL);
使用SDL_CreateWindow()响应消息会产生冲突。
可以改用:SDL_Window *screen = SDL_CreateWindowFrom(m_hWnd)

上一篇:【DB笔试面试691】在Oracle中,分布式事务ORA-01591错误如何解决?


下一篇:c-即使我获得类窗口的句柄,BringWindowToTop也无法正常工作