. : : Assembly Language : : .  |  首页  |  我提出的问题  |  我参与的问题  |  我的收藏  |  消息中心   |  游客  登录  | 
刷新 | 提问 | 未解决 | 已解决 | 精华区 | 搜索 |
  《汇编语言》论坛 ->建议及意见
  管理员: assembly   [回复本贴] [收藏本贴] [管理本贴] [关闭窗口]
主题 : :  masm32环境变量如何设  [待解决] 回复[ 5次 ]   点击[ 991次 ]  
thedaydreamwang
[帖 主]   [ 发表时间:2010-03-27 23:25 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2009-10-07 14:18
驱动器 C 中的卷是 System
 卷的序列号是 14C3-B1B0

 C:\masm32\code\Chapter02\Test 的目录

2010-03-27  23:09    <DIR>          .
2010-03-27  23:09    <DIR>          ..
1998-02-15  21:49               766 Main.ico
2002-01-04  21:34               318 Makefile
2002-05-22  08:17             1,449 Test.asm
2002-05-22  08:18             3,584 Test.exe
2010-03-27  23:13               625 Test.obj
2002-01-29  22:01                20 Test.rc
               6 个文件          6,762 字节
               2 个目录  5,215,293,440 可用字节

C:\masm32\code\Chapter02\Test>rc Test.rc

C:\masm32\code\Chapter02\Test>link /subsystem:windows Test.obj Test.res
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : fatal error LNK1104: cannot open file "Test.exe"

C:\masm32\code\Chapter02\Test>
thedaydreamwang
[第1楼]   [ 回复时间:2010-03-30 02:30 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2009-10-07 14:18
C:\masm32\code\Chapter02\Test>ml /c /coff Test.asm
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

 Assembling: Test.asm

C:\masm32\code\Chapter02\Test>ml
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

usage: ML [ options ] filelist [ /link linkoptions]
Run "ML /help" or "ML /?" for more info

C:\masm32\code\Chapter02\Test>rc Test.rc

C:\masm32\code\Chapter02\Test>Link /subsystem:windows Test.obj Test.res
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : fatal error LNK1104: cannot open file "Test.exe"

C:\masm32\code\Chapter02\Test>
thedaydreamwang
[第2楼]   [ 回复时间:2010-03-30 02:31 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2009-10-07 14:18
有哪位大哥知道的请教教我编译第一个win32程序!!
shaotine_wu
[第3楼]   [ 回复时间:2010-04-10 07:47 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2010-04-08 16:22
顶一个,我也遇到同样的问题!!等待解决!!!!!!!!
civen
[第4楼]   [ 回复时间:2011-01-08 13:10 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2011-01-07 16:00
那就先写很简单的弹出一个对话框的程序:

include masm32rt.inc 
.code 
start: 
    invoke MessageBox, NULL, NULL, NULL, MB_OK 
    invoke ExitProcess, NULL 
end start 


呵呵 ,其实win32汇编和C++差不多的,API格式库也基本一样。
建议使用RadASM开发环境,很好用 ^_^
demort
[第5楼]   [ 回复时间:2011-07-07 18:53 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2011-06-04 00:39
关键是不会用啊....
需要登录后才能回帖 -->> 请单击此处登录
    Copyright © 2006-2024   ASMEDU.NET  All Rights Reserved