Extracting myGetResource and myGetObject to my own file mywinreplace.cpp and included it in CSDLVideo