|
[求助]关于获取本地时间问题..
.386 .model flat,stdcall option casemap:none include windows.inc include kernel32.inc include user32.inc includelib kernel32.lib includelib user32.lib .data lpMsgTitle db "时间",0 lpBuff db 256 dup(0) lpFormat db "今天是:%d年%d月%d日",0 .data? lpSystemTime SYSTEMTIME <?> .code start: invoke GetSystemTime,offset lpSystemTime movzx eax,lpSystemTime.wYear ;获取本地年 movzx edx,lpSystemTime.wMonth ;获取本地月 movzx ecx,lpSystemTime.wDay ;获取本地日,你可以判断这个变量就可以了。 invoke wsprintf,offset lpBuff,offset lpFormat,eax,edx,ecx invoke MessageBox,NULL,offset lpBuff,offset lpMsgTitle,MB_OK invoke ExitProcess,NULL end start |
|
|
|
[求助]关于获取本地时间问题..
GetSystemTime函数有返回值吗?似乎没有吧。 下面的MSDN里的参考。 VOID GetSystemTime( LPSYSTEMTIME lpSystemTime // address of system time structure ); Parameters lpSystemTime Points to a SYSTEMTIME structure to receive the current system date and time. Return Values This function does not return a value. The SYSTEMTIME structure represents a date and time using individual members for the month, day, year, weekday, hour, minute, second, and millisecond. typedef struct _SYSTEMTIME { // st WORD wYear; WORD wMonth; WORD wDayOfWeek; WORD wDay; WORD wHour; WORD wMinute; WORD wSecond; WORD wMilliseconds; } SYSTEMTIME; Members wYear Specifies the current year. wMonth Specifies the current month; January = 1, February = 2, and so on. wDayOfWeek Specifies the current day of the week; Sunday = 0, Monday = 1, and so on. wDay Specifies the current day of the month. wHour Specifies the current hour. wMinute Specifies the current minute. wSecond Specifies the current second. wMilliseconds Specifies the current millisecond. Remarks It is not recommended that you add and subtract values from the SYSTEMTIME structure to obtain relative times. Instead, you should |
|
[求助]VC++中对UNICODE的引用,大家也要注意
我这里测试了几次,都没有出现你所说的情况,定义_UNICODE时为2,不定义_UNICODE时为1。 你试试将#include <wchar.h>去掉。 |
|
[求助]VC++中对UNICODE的引用,大家也要注意
我试了一下,你的也是2, #define _UNICODE #include <stdio.h> #include <tchar.h> #include <wchar.h> void main() { TCHAR A; wchar_t s; // sprintf(ss,"woaini"); //提示没有ss变量,所以这个我注释掉了, printf("\n%d%d",sizeof A,sizeof s); // while(1){}; //这里会陷入死循环,所以这里也注释掉了。 } 不是程序员,只是爱好者。 |
|
[求助]VC++中对UNICODE的引用,大家也要注意
我这里可以。 #define _UNICODE #include <TChar.h> #include <stdio.h> int main() { printf("%d",sizeof(TCHAR)); return 0; } |
|
[求助]VC++中对UNICODE的引用,大家也要注意
最初由 薄冰 发布 必须定义在引用前,即定义在#include <....>前面。过了#include <....>就不起作用了。 |
|
|
|
[求助]VC6.0中多次出现的编译问题,长期困扰[已解决]
在VC工程链接选项中加入WS2_32.lib库。 |
|
[求助]关于"只运行一个实例 "的困惑?
即该软件只能同时打开一个,不能打开二个、三个、四个、N个。。。。 |
|
|
|
|
|
win32汇编中如何实现无标题栏的窗口,如何实现透明窗口
免子也来了,晕,还是2004年注册的,水还潜的真深啊,呵呵。 第一个问题很简单,只需要VC资源管理器中将窗口样式设成“无”即可以实现无标题窗口。再在窗口中放一个Image控件和两个按钮便成了。 第二个是抄自网上的代码,我自己还没有测试过。 1、创建一个窗口,必须带有WS_EX_LAYERED风格的。 2、调用SetLayeredWindowAttributes函数即可。 invoke SetLayeredWindowAttributes,hWnd,NULL,192,LWA_ALPHA 其中SetLayeredWindowAttributes第二个参数从0~255是设置透明度的。 |
|
各位大人,看看这个源码,为什么会这么奇怪
你还必须同时修改*.rc资源中的szClass名才行。 |
|
北极星2003高手~~~或各位高人帮解决一下!
利用一个Dll,注入所有进程,将杀毒软件一样,监视所有的进程调用GetWindowText、GetClassName之类的函数,屏蔽掉获取自身的的调用。 当然,什么方法都不是万能的,你的你的招,别人有别人的招。就看谁更高明了。QQ屏蔽键盘HOOK貌似用了驱动。 |
|
异常反调试如何解决?
跟进异常。Kill掉Anti-Debug |
|
北极星2003高手~~~或各位高人帮解决一下!
利用APIHOOK,HOOK掉获取类名窗口名的相关API应该可以办到。 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值