-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed dependency on MFC (afxres.h and afxwin.h) (#106)
* Removed dependency on MFC (afxres.h and afxwin.h) * updated tape counter and operation mode in the tape dialog to use the RichEdit20A (MBCS) class for the rich edit control.
- Loading branch information
1 parent
a2a0866
commit 8d3d5f5
Showing
20 changed files
with
217 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "DebuggerUtils.h" | ||
#include <sstream> | ||
#include <iomanip> | ||
|
||
std::string ToHexString(long value, int length, bool leadingZeros) | ||
{ | ||
std::ostringstream fmt; | ||
|
||
fmt << std::hex << std::setw(length) << std::setfill(leadingZeros ? '0' : ' ') << value; | ||
|
||
return fmt.str(); | ||
} | ||
|
||
|
||
std::string ToDecimalString(long value, int length, bool leadingZeros) | ||
{ | ||
std::ostringstream fmt; | ||
|
||
fmt << std::dec << std::setw(length) << std::setfill(leadingZeros ? '0' : ' ') << value; | ||
|
||
return fmt.str(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
#include <Windows.h> | ||
#include <string> | ||
|
||
template<class Type_> | ||
inline LPCSTR ToLPCSTR(std::basic_string<Type_>& str) | ||
{ | ||
return str.c_str(); | ||
} | ||
|
||
template<class Type_> | ||
inline LPCSTR ToLPCSTR(const std::basic_string<Type_>& str) | ||
{ | ||
return str.c_str(); | ||
} | ||
|
||
template<class Type_> | ||
LPCSTR ToLPCSTR(const std::basic_filebuf<Type_>&& str) | ||
{ | ||
static_assert("RValue not supported for ToLPCSTR"); | ||
} | ||
|
||
std::string ToHexString(long value, int length, bool leadingZeros = true); | ||
std::string ToDecimalString(long value, int length, bool leadingZeros); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.