diff --git a/HP11C.obj b/HP11C.obj index 227da41..30c600f 100644 Binary files a/HP11C.obj and b/HP11C.obj differ diff --git a/MainWindow.obj b/MainWindow.obj index 18807fa..aa69797 100644 Binary files a/MainWindow.obj and b/MainWindow.obj differ diff --git a/bin/HP11C.exe b/bin/HP11C.exe index c1b4c38..302e465 100644 Binary files a/bin/HP11C.exe and b/bin/HP11C.exe differ diff --git a/bin/HP11C.ilk b/bin/HP11C.ilk index 88e6e1b..9cc0b50 100644 Binary files a/bin/HP11C.ilk and b/bin/HP11C.ilk differ diff --git a/bin/HP11C.pdb b/bin/HP11C.pdb index 7abea1b..ad1ae9c 100644 Binary files a/bin/HP11C.pdb and b/bin/HP11C.pdb differ diff --git a/button.obj b/button.obj index b93072e..c69a775 100644 Binary files a/button.obj and b/button.obj differ diff --git a/buttonTypes.obj b/buttonTypes.obj index 4820f66..992abd5 100644 Binary files a/buttonTypes.obj and b/buttonTypes.obj differ diff --git a/decode.obj b/decode.obj index 2b267c1..46a5c77 100644 Binary files a/decode.obj and b/decode.obj differ diff --git a/files.obj b/files.obj index 021ba0b..001a1f6 100644 Binary files a/files.obj and b/files.obj differ diff --git a/function.obj b/function.obj index 8337941..f7e7c91 100644 Binary files a/function.obj and b/function.obj differ diff --git a/layerWindow.obj b/layerWindow.obj index e4c1ebc..583086c 100644 Binary files a/layerWindow.obj and b/layerWindow.obj differ diff --git a/registers.obj b/registers.obj index 248b5b4..4569d87 100644 Binary files a/registers.obj and b/registers.obj differ diff --git a/src/function.cpp b/src/function.cpp index a531572..9ab5426 100644 --- a/src/function.cpp +++ b/src/function.cpp @@ -31,6 +31,20 @@ void SetX(long double val) } stackString = str; + + if (autoCopyToClipboard) + { + const WCHAR* output = stackString.c_str(); + const size_t len = stackString.size() + 1; + HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, len); + memcpy(GlobalLock(hMem), output, len); + GlobalUnlock(hMem); + OpenClipboard(NULL); + EmptyClipboard(); + SetClipboardData(CF_UNICODETEXT, hMem); + CloseClipboard(); + } + } void SetNewX(long double val) diff --git a/vc140.pdb b/vc140.pdb index 19066c8..a8c7281 100644 Binary files a/vc140.pdb and b/vc140.pdb differ diff --git a/window.obj b/window.obj index 055c23f..b851cbc 100644 Binary files a/window.obj and b/window.obj differ