随笔分类 - VC++,C
摘要:创建PVK文件[私人密匙文件] makecert -sk DigitalTitan DigitalTitan.pvkmakecert -n CN=TelStar TelStar 创建CER文件[公司证书] makecert -sk DigitalTitan.pvk TelStar.cer 创建SPC测试软件出版商证明书 cert2spc root.cer TelStar.cer TelSta...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例十四 函数名: strset 功 能: 将一个串中的所有字符都设为指定字符 用 法: char *strset(char *str, char c); 程序例: #i nclude #i nclude int main(void) { char string[10] =...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例十三 函数名: stat 功 能: 读取打开文件信息 用 法: int stat(char *pathname, struct stat *buff); 程序例: #i nclude #i nclude #i nclude #define FILENAME "TEST.$...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例十二 函数名: setrgbpalette 功 能: 定义IBM8514图形卡的颜色 用 法: void far setrgbpalette(int colornum, int red, int green, int blue); 程序例: #i nclude #i ncl...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例十一 函数名: setbkcolor 功 能: 用调色板设置当前背景颜色 用 法: void far setbkcolor(int color); 程序例: #i nclude #i nclude #i nclude #i nclude int main(void) { /...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例十 函数名: qsort 功 能: 使用快速排序例程进行排序 用 法: void qsort(void *base, int nelem, int width, int (*fcmp)()); 程序例: #i nclude #i nclude #i nclude i...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例九 函数名: mktemp 功 能: 建立唯一的文件名 用 法: char *mktemp(char *template); 程序例: #i nclude #i nclude int main(void) { /* fname defines the temp...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例八 函数名: kbhit 功 能: 检查当前按下的键 用 法: int kbhit(void); 程序例: #i nclude int main(void) { cprintf("Press any key to continue:"); while (!kbhit(...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例七 函数名: getw 功 能: 从流中取一整数 用 法: int getw(FILE *strem); 程序例: #i nclude #i nclude #define FNAME "test.$$$" int main(void) { FILE *fp; int word; /* place the word in a file */ fp =...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例六 函数名: getlinesettings 功 能: 取当前线型、模式和宽度 用 法: void far getlinesettings(struct linesettingstype far *lininfo): 程序例: #i nclude #i nclude...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例五 函数名: getcurdir 功 能: 取指定驱动器的当前目录 用 法: int getcurdir(int drive, char *direc); 程序例: #i nclude #i nclude #i nclude char *current_di...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例四 couble fmod (double x, double y); 返回x对y的模,即x/y的余数。 void fnmerge(char *path,const char *drive,const char *dir,const char *name,const char *e...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例三 函数名: ecvt 功 能: 把一个浮点数转换为字符串 用 法: char ecvt(double value, int ndigit, int *decpt, int *sign); 程序例: #i nclude #i nclude #i nclude int main(void) { char *string; double value; in...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例二 函数名: bioskey 功 能: 直接使用BIOS服务的键盘接口 用 法: int bioskey(int cmd); 程序例: #i nclude #i nclude #i nclude #define RIGHT 0x01 #define LEFT 0x...
阅读全文
摘要:[编程资料]C语言库函数大全及应用实例一 函数名: abort 功 能: 异常终止一个进程 用 法: void abort(void); 程序例: #i nclude #i nclude int main(void) { printf("Calling abort()\n"); abort(); return 0; /* T...
阅读全文
摘要:一、概述---- 本文主要讲述如何使用Visual C++用MAPI编写E-mail程序。MAPI是包含在Windows之中的,因此不需要安装其他额外的部件。MAPI有以下三种形式:SMAPI,Simple MAPI,简单的MAPICMC,Common Messaging Calls,一般通讯调用完整的MAPI---- SMAPI和CMC都包含在完整的MAPI中,当用户想执行一些高级操作,比如编写...
阅读全文