
VC
文章平均质量分 78
tianhuo_soft
sql server, C#, C++
展开
-
用Visual C++ 6.0写Windows 服务
用Visual C++ 6.0写Windows 服务【摘要】Windows 服务的Visual C++ 6.0写法。【全文】// ServiceTest.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #ifdef _DEBUG#define new DE转载 2006-10-12 10:08:00 · 3871 阅读 · 1 评论 -
VC获得系统文件夹路径
CHAR Buffer[MAX_PATH]; GetWindowsDirectory(Buffer,MAX_PATH); GetDlgItem(IDC_EDIT1)->SetWindowText(Buffer); CString str; str.Format("%d",MAX_PATH); GetDlgItem(IDC_EDIT2)->SetWindowText(str)原创 2007-08-03 22:53:00 · 1580 阅读 · 0 评论 -
获得当然前应用程序路径
CHAR fullPath[100]; GetCurrentDirectory(100,fullPath); sname.Format("%s",fullPath); GetDlgItem(IDC_EDIT4)->SetWindowText(sname);原创 2007-08-03 23:39:00 · 647 阅读 · 0 评论 -
VC中使用汇编语言
#include void main(){ int a; __asm mov eax,10 __asm mov a,eax printf("%d",a); }原创 2007-08-08 20:45:00 · 721 阅读 · 0 评论 -
单向链表倒序
#include #include #define null 0 typedef struct node {int data; struct node *next; }linklist; linklist *invert(linklist *head) {linklist *p,*q,*s; p=head->ne原创 2007-06-20 08:43:00 · 2655 阅读 · 0 评论