可以修改如下: 或者如下: 代码如下: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Co...
分类:
数据库 时间:
2015-10-23 18:31:45
阅读次数:
263
按值传递,会在函数内复制一个变量,不会改变外部参数的值。 按址传递,需要在参数上写var标识符,会改变外部传入参数的值。 如下图: 代码如下: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, S...
分类:
数据库 时间:
2015-10-23 18:22:13
阅读次数:
188
调用 speeker.dll 这个文件被本人 放在文件里面,若有人需要可以 联系我需要 mfc100ud.dll msvcr100d.dll注:可以用D7 自带的ActiveX 里面的控件,可以调速,需要安装语音包。unit Unit1;interfaceuses Winapi.Windows...
分类:
其他好文 时间:
2015-10-22 16:55:49
阅读次数:
173
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { // win_main.cpp Sys_CreateConsole(); commo...
分类:
其他好文 时间:
2015-10-19 12:15:16
阅读次数:
169
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { Sys_SetPhysicalWorkMemory( 192 Init( 0, NULL, l...
分类:
其他好文 时间:
2015-10-19 09:24:53
阅读次数:
166
一、int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int nCmdShow)四个参数:hInstance:程序当前实例的句柄(handle to current instance),...
为了便于在Windows系统下进行轻量级的C/C++编程;1.安装MinGW (自动下载gcc);2.写代码 main.cpp/*#includeusing namespace std;int main(int argc, char* argv[]){ coutint WINAPI WinMain ...
分类:
其他好文 时间:
2015-09-28 13:11:03
阅读次数:
134
看看如下代码,觉得输出会是什么? 1 #include "stdafx.h" 2 #include 3 #include 4 using namespace std; 5 6 DWORD WINAPI Func(LPVOID p); 7 typedef struct 8 { 9 in...
分类:
编程语言 时间:
2015-09-24 12:38:51
阅读次数:
130
if(message->message == WM_DEVICECHANGE) { /*if (message->wParam == DBT_DEVICEARRIVAL || message->wParam == DBT_DEVICEREMOVECOMPLETE) { PDEV_BROADC...
方法一、使用GetSystemMetrics函数GetSystemMetrics函数原型如下:int WINAPI GetSystemMetrics( __in int nIndex);每一个想要获取的信息对应着一个索引值,把索引值作为参数传递给GetSystemMetrics,将获得对应的信息.....
分类:
其他好文 时间:
2015-09-22 16:21:16
阅读次数:
164