|
汇编的静态链接库如何在VC中调用?
还是不行啊~ MASM: .386 .model flat,stdcall option casemap:none include windows.inc include user32.inc include kernel32.inc includelib user32.lib includelib kernel32.lib includelib fuckme.lib fuckme proto C .code start: invoke fuckme invoke ExitProcess,0 end start VC: #include <windows.h> extern "C" void WINAPI fuckme() { MessageBox(NULL,"","",0); } |
|
|
|
关于汇编的zlib
C的静态库也可以~~ 但是没有头文件~~ 我在汇编里面编译调用了一下 有几个函数找不到~~ 例如 memset memcopy free 这些函数需要链接哪个lib? 我查了一下msdn也找不到 |
|
汇编的静态链接库如何在VC中调用?
反过来呢? 如果我要在汇编中调用VC写的函数 我尝试了一下 #include <windows.h> extern "C" void fuckme() { MessageBox(NULL,"","",0); } 汇编 .386 ..... fuckme proto C 这样调用fuckme函数会出错的~~ fatal error LNK1104: cannot open file "LIBC.lib" 如果不加后面的C,就会找不到fuckme这个函数 main.obj : error LNK2001: unresolved external symbol _fuckme@0 |
|
关于多个asm文件的编译和连接
我试了好久,都没有成功~~~ 可否举一个简单的例子,或者上传一段简单的代码~~ A.asm B.asm B.inc A文件里面调用B文件里面的函数 而A只需要include B.inc文件 就是C语言的风格 |
|
masm 中如何使用unicode字符?
整上来瞧瞧 |
|
关于多个asm文件的编译和连接
是不是需要用到public和extern操作符? |
|
|
|
|
|
汇编的静态链接库如何在VC中调用?
倒~~~~~~ 真的成功了~~~ 太谢谢了~~~~ 终于没有让我失望~~~ 注册ID等一天才能发帖子,看来没白等~~~ 对了,阁下知道,为什么在开始声明stdcall,c会导致VC的编译错误吗? |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值