Wednesday, February 27, 2019
[Blog] 在 Blogger 加上程式碼區塊
參見下方連結.
* 如果程式碼中有角括號 (<>)時,要先用 HTML Encoder 進行轉碼再貼上,才不會被編輯器誤認為是要在部落格網頁裏執行的程式碼。
[Reference]
https://pjchender.blogspot.com/2016/06/prism-syntax-highlighting.html
https://www.opinionatedgeek.com/codecs/htmlencoder
* 如果程式碼中有角括號 (<>)時,要先用 HTML Encoder 進行轉碼再貼上,才不會被編輯器誤認為是要在部落格網頁裏執行的程式碼。
[Reference]
https://pjchender.blogspot.com/2016/06/prism-syntax-highlighting.html
https://www.opinionatedgeek.com/codecs/htmlencoder
Sunday, February 24, 2019
Saturday, February 23, 2019
[C++ Builder] Cannot add 64-bit windows platform
1. Open project file (*.cbproj) from a text editor.
2. Find <Platforms>, it may looks like:
<Platforms>
<Platform value="Win32">True</Platform>
</Platforms>
3. Add <Platform value="Win64">True</Platform>
<Platforms>
<Platform value="Win32">True</Platform>
<Platform value="Win64">True</Platform>
</Platforms>
4. Save project file.
5 Reopen the project.
[Reference] https://forums.embarcadero.com/message.jspa?messageID=823436
[C++ Builder] FLOAT_INVALID_OVERFLOW!! SetExceptionMask !!
Error FLOAT_INVALID_OVERFLOW occurred when calling a function from a DLL build by VC from C++ Builder? This is a problem of C++ Build and solve if by calling SetExceptionMask before calling your Dll.
Example:
https://delphi.fandom.com/wiki/SetExceptionMask_Routine
http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Math.SetExceptionMask
Example:
#include <System.Math.hpp>
typedef int (*PFNAddFunction)(int, int);
void testDllCall()
{
//Mask Exception
TFPUExceptionMask fExceptionMask ;
fExceptionMask=GetExceptionMask();
fExceptionMask << exInvalidOp;
fExceptionMask << exDenormalized;
fExceptionMask << exZeroDivide;
fExceptionMask << exOverflow;
fExceptionMask << exUnderflow;
fExceptionMask << exPrecision;
SetExceptionMask(fExceptionMask);
//Call DLL
HMODULE _dll=LoadLibraryA("dllName.dll");
if(_dll != NULL) {
PFNAddFunction myAdd = (PFNAddFunction)GetProcAddress(_dll,"funcAdd");
myAdd(1,2)
FreeLibrary(_dll);
}
}
[Reference]
https://delphi.fandom.com/wiki/SetExceptionMask_Routine
http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Math.SetExceptionMask
Subscribe to:
Posts (Atom)
phpMyAdmin 無法存取 MariaDB 10 的解決方法
[Reference] https://www.qnap.com/zh-tw/how-to/faq/article/%E7%82%BA%E4%BB%80%E9%BA%BC%E7%84%A1%E6%B3%95%E5%9C%A8-phpmyadmin-%E5%AD%98%E5%8...
-
[ M LiDAR Viewer ] Windows 7 環境下, 在OpenGL視窗使用GDI即時繪圖,例如操作滑鼠繪出框選矩形時, 原來在視窗上的圖案會被清除。此時必須關閉[桌面轉譯緩衝處理]。 1.在程式的圖案上按滑鼠右鍵, 開啟程式[內容]對話盒. 2.按[相容性]頁面...
-
看這裏 http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/1f22d98f-e150-4a54-9967-1641fa86dbc5
-
[Reference] http://www.programmer-club.com.tw/ShowSameTitleN/cb/10992.html 在主程式 WinMain() 加入下面程式碼 WINAPI WinMain(HINSTANCE, HINSTANCE, LPST...