|
[求助]怎么知道数据在内存中的地址啊??
你把数据读入缓冲区之后查找到所需数据, 把它的偏移加上起始虚拟地址就是那个数据的虚拟地址 虚拟地址和数据在物理内存中的地址是不尽相同的, 虚拟地址要通过一系列转换才得到物理地址 |
|
[求助]怎么知道数据在内存中的地址啊??
ReadProcessMemory的参数中不是有一个lpBaseAddress吗?不知道地址怎么访问数据呢? 如果要得到数据在物理内存中的地址, Windows内核中倒是有有一个函数(MmGetPhysicalAddress), 可是Win32应用程序是无法调用这个函数的, 估计ntdll.dll中应该有函数可以实现这个功能, 可惜我见识有限, 不知道要用哪个函数 |
|
[求助]用RadAsm调用invoke ShellExecute编译不通过,显示undefined symbol
一般来说查查MSDN就知道了, 例如ShellExecute函数说明的最后有这样一段: Function Information Header shellapi.h Import library shell32.lib Minimum operating systems Windows NT 3.1, Windows 95 C语言的头文件和汇编不一样, 但是lib文件是相同的, 如果lib文件是xxxx.lib的话只要include xxxx.inc 和 includelib xxxx.lib就可以了 |
|
[求助]用RadAsm调用invoke ShellExecute编译不通过,显示undefined symbol
楼主不用那样说啊, 我第一次写汇编程序的时候也犯过同样的错误 |
|
|
|
关于多个asm文件的编译和连接
这里有一个例子, 让它和masm32在同一个盘符下执行assemble.bat文件就可以编译连接了 |
|
关于汇编的zlib
静态库是Obj文件的打包, 类似于java中的jar文件 |
|
[求助]用RadAsm调用invoke ShellExecute编译不通过,显示undefined symbol
include shell32.inc |
|
第一次用od调试简单程序不成功,很郁闷[求助]
我用PEiD打开那个msvcrt80.dll, 提示不是有效的PE文件, 是不是这个文件是64位的? |
|
第一次用od调试简单程序不成功,很郁闷[求助]
正是, 另外我同学装了VS2005, 里面带的ml版本是8.0, 可惜拷贝过来一运行就提示什么程序未安装成功, 不知该怎么办 |
|
第一次用od调试简单程序不成功,很郁闷[求助]
我试验了一下, 没有出现你说的情况 编译和连接命令如下: D:\TOBECR>ml /c /Cp /coff a.asm Microsoft (R) Macro Assembler Version 7.10.4035 Copyright (C) Microsoft Corporation. All rights reserved. Assembling: a.asm D:\TOBECR>link /subsystem:windows a.obj Microsoft (R) Incremental Linker Version 7.10.4035 Copyright (C) Microsoft Corporation. All rights reserved. |
|
关于多个asm文件的编译和连接
默认就是public 声明函数可以用extern和externdef, proto也是可以的 要先分别把fun.asm和main.asm编译成fun.obj和main.obj, 然后连接时同时指定两个obj文件 |
|
[求助]这个软件的方程式该怎么写?
系数矩阵 A=[1 1 0 0 1 1 1 0 1] 其逆矩阵 A^(-1) = [1/2 -1/2 1/2 1/2 1/2 -1/2 -1/2 1/2 1/2] 方程组解为: X = A^(-1) * [48 56 52] = [22 26 30] |
|
WINDOWS控制台程序怎样接收WINDOWS消息?
请注意, 控制台程序和窗口程序唯一的不同就是启动的时候系统会自动给它分配一个控制台窗口, 一个正常的窗口程序完全可以按照控制台程序的方式链接, 这样生成的程序可以照常运行, 照常显示窗口, 只是多了一个没有任何内容的控制台窗口 普通的控制台程序是不需要接收消息的, 特殊情况如处理ctrl+break(C)时系统有专用的函数, 我在5楼的帖子中已经说了 楼主为什么要在控制台程序中处理消息呢? |
|
关于多个asm文件的编译和连接
我的意思是分别编译几个独立的源代码文件, 生成多个obj文件, 然后把这些obj文件连接成exe文件 |
|
masm 中如何使用unicode字符?
4F提供的宏功能更强大 例如能够自动找出重复定义的字符串, 支持转义符\r, \n等 不过缺点是Unicode字符串最多只支持47个字符 我做了一个修正版, 能支持64个字符(ucmacros支持117个字符), 另外加上了\u转义符, 支持类似"\u20h"(等价于空格, ASCII码为20h)的写法 如果大家需要可以上传 |
|
|
|
汇编的静态链接库如何在VC中调用?
声明为stdcall, c的话实际上是声明了c函数调用类型, stdcall会被忽略, 这样编译器在处理API函数MessageBoxA函数的时候会把它当作C调用类型,而实际上MessageBoxA是Stdcall类型的 |
|
WINDOWS控制台程序怎样接收WINDOWS消息?
对于如何处理ctrl + C消息, 可以用这个函数: invoke SetConsoleCtrlHandler, ADDR Handler, TRUE 其中Handler是这样一个函数: Handler PROC _ControlType ;代码略 Handler ENDP 至于得到鼠标(还是光标?)位置, 直接用GetCursorPos函数就可以了 要得到光标位置可以用GetConsoleCursorInfo函数 |
|
|
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值