VCCE / VCC

Tandy Color Computer 3 Emulator
GNU General Public License v3.0
68 stars 22 forks source link

Removed dependency on MFC (afxres.h and afxwin.h) #106

Closed ChetSimpson closed 1 year ago

ChetSimpson commented 1 year ago

This commit eliminates the dependency on MFC by replacing usage of afxres.h with winres.h, afxwin.h with windows.h, and CString with std::string. It also swaps the call to AfxInitRichEdit() with LoadLibrary("RICHED20.DLL"); to support the rich edit control in the breakpoints window, printf with OutputDebugString for debug reporting. removes using namespace std from global scope in C++ headers and source files, and fixes a handful of instances of undefined behavior.

ejaquay commented 1 year ago

I did a test build with this commit. The tape config dialog is now blank for me (Windows 10). Note: This is the only dialog with RICHEDIT controls and if I comment out these two controls in Vcc.rc the dialog is partially restored (minus the commented out controls)

ejaquay commented 1 year ago

Opps. Set to draft was accidental. This request is still in review. There still is an issue with the cassette dialog which could be resolved by modifying a couple of controls.