|
[求助]求一个关于复制操作的代码
我曾经写的一个小东西,你看看,用的c++和递归 http://blog.csdn.net/avder/archive/2007/06/25/1665123.aspx 这个主要是编历,你每个遍历里面加上创建文件夹或者复制文件就好了 |
|
|
|
求助]对编程从那下手,对这我已经付出太好的代价了
看你对什么有兴趣,坚持写就是,关键就是坚持 |
|
[求助]如何打开线程?
但是我如下代码成功,呵呵 ////////////头文件//////////////////////////////////////////////////////////// #include "windows.h" #include <stdio.h> ////////////宏定义//////////////////////////////////////////////////////////// ////////////全局变量////////////////////////////////////////////////////////// ////////////函数定义////////////////////////////////////////////////////////// int main(int argc, char *argv[]) { // 局部变量 DWORD dwThreadID = GetCurrentThreadId(); HINSTANCE lib = LoadLibrary("kernel32.dll"); typedef HANDLE (*MYPROC)(DWORD,BOOL,DWORD);//OpenThread MYPROC ProcAdd; // 函数动作 if(lib != NULL) { HANDLE my_thread = NULL; ProcAdd = (MYPROC) GetProcAddress(lib, "OpenThread"); my_thread = (ProcAdd) (THREAD_ALL_ACCESS & (~THREAD_TERMINATE),FALSE,dwThreadID); if(NULL != my_thread) printf("open thread success\n"); FreeLibrary(lib); } // 返回值 return 0; } 不过这个代码挺多余的 |
|
[求助]如何打开线程?
OpenThread The OpenThread function opens an existing thread object. HANDLE OpenThread( DWORD dwDesiredAccess, // access right BOOL bInheritHandle, // handle inheritance option DWORD dwThreadId // thread identifier ); If the function succeeds, the return value is an open handle to the specified process. If the function fails, the return value is NULL. To get extended error information, call GetLastError. Remarks The handle returned by OpenThread can be used in any function that requires a handle to a thread, such as the wait functions, provided you requested the appropriate access rights. The handle is granted access to the thread object only to the extent it was specified in the dwDesiredAccess parameter. When you are finished with the handle, be sure to close it by using the CloseHandle function. Requirements Windows NT/2000/XP: Included in Windows 2000 and later. Windows 95/98/Me: Included in Windows Me. Header: Declared in Winbase.h; include Windows.h. Library: Use Kernel32.lib. msdn里面的 |
|
人回来了,心却丢掉了
大学还是可以碰到交心的朋友的,但是需要自己好好把握,女孩子也希望一个人疼的 |
|
[调查]希望看雪论坛组建学习小组
学习是共同进步的过程,支持这个 |
|
[活动成功结束]看雪论坛. 卡迈奇2007年技术交流沟通会(上海地区)
我太远了,记得照片,哈哈 |
|
[求助]DLL Export Viewer v1.11
大虾,可以传到论坛不,这个下载太慢了,而且还总断 |
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值