title | description | date | categories | slug | |
---|---|---|---|---|---|
QQ协议分析 |
QQ协议分析 |
2014-04-16 |
|
qq-protocol |
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
/* | |
* Author: Ugo Varetto - ugovaretto@gmail.com | |
* This code is distributed under the terms of the Apache Software License version 2.0 | |
* https://opensource.org/licenses/Apache-2.0 | |
*/ | |
#include < time.h > | |
#include < windows.h > | |
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) |
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
下述密码均摘自互联网 | |
【字母表顺序】-数字 | |
加密的时候,经常要把A~Z这26个字母转换成数字,最常见的一种方法就是取字母表中的数字序号。A代表1,B代表2,C代表3... | |
字母 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z | |
数字 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
XML configuration files for compiling MATLAB MEX-files using VS2017. Tested on Windows 10 64-bit with MATLAB R2016b and Visual Studio 2017 (Enterprise Edition), but it should also work with the Community Edition.
- First copy the files to
MATLABROOT\bin\win64\mexopts
(this might trigger a UAC prompt). - Next run
mex -setup
andmex -setup C++
in MATLAB, and select VS2017 compilers. - Finally test the new settings with a sample MEX-file:
>> mex -v -largeArrayDims test.cpp
Because I have no trust in people.
<hashlink>
points to your installation of Hashlink, e.g. folder in whichhl.exe
(or Unix executable) is, alongside with library binaries (.hdll
files), andinclude
folder.<src>
points to the folder containing generated HL/C sources. One that containshlc.json
file.<app>
refers to your output executable name, including extension.<main>
refers to your entry-point file name, including extension (see below).- I provide example of doing it on Windows via MSVC
cl.exe
, but Unix should be more or less same with replacement of argument flags and compiler. - I expect that you DO have a compiler installed and can call
cl.exe
or other compiler from command-line.