Home > Software engineering >  Error 100 error C2440: "static_cast" : from "void (__thiscall CGameView: : *) (int)&q
Error 100 error C2440: "static_cast" : from "void (__thiscall CGameView: : *) (int)&q

Time:10-01

Error 100 error C2440: "static_cast" : from "void (__thiscall CGameView: : *) (int)" into "LRESULT (__thiscall CWnd: : *) (WPARAM, LPARAM)" c: \ users \ administrator, desktop, temporary files, a game based on opengl code \ gameview CPP 28 1 game
This is download for example on the BBS, but there was a mistake how to solve

CodePudding user response:

Type wrong you check

CodePudding user response:

Function definition does not conform to the format, the compiler to upgrade, function definitions are changed, corresponding change
Gameview. CPP 28

CodePudding user response:

Void (__thiscall CGameView: : *) (int) "into" LRESULT (__thiscall CWnd: : *) (WPARAM, LPARAM)

Two functions of parameter types and the number is different, certainly cannot phase transformation.
  • Related