原创 一段用Python語言的Ctypes模塊調用系統api函數寫的rsa加密代碼

from ctypes import * from binascii import a2b_hex, b2a_hex #baseCrypt = u"Microsoft Base Cryptographic Provider v1.0"

原创 C++ 嵌入 Lua 腳本 示例代碼

// lua.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio h=""> #inc

原创 luajit調用win32 api函數實現base64編碼

local ffi = require("ffi") ffi.cdef[[ int CryptBinaryToStringA( const char *pbBinary, int cbBinary, int dwFl

原创 使用BCB6-TValueListEditor控件

TValueListEditor控件可實現類似屬性選擇窗口的功能。當然相比至下功能還是少了很多,不過很多情況下也夠用了。通過重載類函數及控制控件消息響應的方式,打造一個自己滿意的控件那不是當下我想做的事。在此記錄該控件的簡單使用方法 1.

原创 OpenMP & Fortran

在Fortran中應用OpenMP,有時會遇到一行中openmp的編譯指令太長,需要換行的情形。今天在網上看到一段例程,明白了該如何處理這種情形。 !$omp parallel & !$omp shared ( h, n ) & !$