Delphi Win API函数 操作帮助文件 HtmlHelpA函数介绍 函数原型:HWND HtmlHelpA( HWND hwndCaller, LPCSTR pszFile, UINT uCommand, DWORD_PTR dwData ); Delphi 中引用:function HtmlHelpA (hwndcaller:Longint; lpHelpFile:string; wCommand:Longint;dwData:string): HWND;stdcall; extern…
Delphi Win API 函数 MulDiv 原型:function MulDiv(nNumber, nNumerator, nDenominator: Integer): Integer; stdcall; 例如:MulDiv(a, b, c) ; 计算相当于 a*b/c  或 a*b div c 计算的结果有两个特点: 1.计算的值自动会四舍五入: 2.超出计算或无法计算的值输出值: -1 更新日期:2019.12.19 来源:https://www.cnblogs.com/guoron…
版权声明:若无来源注明,Techie亮博客文章均为原创. 转载请以链接形式标明本文标题和地址: 本文标题:QSettings配置读写-win注册表操作-ini文件读写     本文地址:http://techieliang.com/2017/12/674/ 文章目录 1. 介绍 2. 创建配置文件  2.1. 配置格式  2.2. 作用域  2.3. 关于组织.程序名 3. 配置文件读写 4. 范例  4.1. win下SystemScope.IniFormat  4.2. win下UserSc…
javacsv是国外开发的一个比较好的操作csv文件的API,这里简单讲一下用法. 先下载javacsv2.0.zip的文件,解压后,把javacsv.jar 添加到项目中.  本站下载地址: http://www.cnitblog.com/Files/rd416/javacsv2.0.zip 官方下载地址: http://sourceforge.net/project/showfiles.php?group_id=33066 简单的操作代码: /** * 读取CSV文件 */ public v…
引用单元:uses ShellAPI; 函数原型:function ShellExecute(hWnd: HWND; Operation, FileName, Parameters,Directory: PChar; ShowCmd: Integer): HINST; stdcall; hWnd:用于指定父窗口句柄.当函数调用过程出现错误时,它将作为Windows消息窗口的父窗口.例如,可以将其设置为应用程序主窗口句柄,即Application.Handle,也可以将其设置为桌面窗口句柄(用Ge…
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setforegroundwindow Brings the thread that created the specified window into the foreground and a…
在def_function.py文件里面写 #coding=utf-8 #定义函数 def hello(): print "hello world" 在test.py里面调用 #coding=utf-8 from def_function import hello #from def_function import * #导入该文件里的所有函数 #调用函数 hello() 在cmd下调用…
转自: C/C++常用头文件及函数汇总 C/C++头文件一览 C #include <assert.h> //设定插入点#include <ctype.h> //字符处理#include <errno.h> //定义错误码#include <float.h> //浮点数处理#include <iso646.h>        //对应各种运算符的宏#include <limits.h> //定义各种数据类型最值的常量#include…
sort()函数与qsort()函数及其头文件 sort()函数是C++中的排序函数其头文件为:#include<algorithm>头文件: qsort()是C中的排序函数,其头文件为:#include<stdlib.h> 1.qsort()----六类qsort排序方法 qsort函数很好用,但有时不太会用比如按结构体一级排序.二级排序.字符串排序等. 函数原型: void qsort(void *base, size_t nelem, size_t width, int (*…
VC 使用msxml6.dll动态链接库中的函数读写XML文件 目录 1 引言 2 .dll使用方法 3 常用函数总结 4 实例应用 5 运行效果预览 6 补充说明 7 不足之处 8 更新   引言: 在C:\WINDOWS\system32\下有msxml3.dll 和 msxml6.dll两个动态链接库可以提供操作XML文件的函数.这两个只是版本不同,使用其一即可.   .dll使用方法: #import "C:\\WINDOWS\\system32\\msxml6.dll"   …