WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
Pages (2) [1] 2   ( Go to first unread post )

Include Files, Pathing, do I have to specify full path of include files or simply the include file name ?

Spartan-478
Quote Post


New Member
*

Group: Members
Posts: 18
Member No.: 5457
Joined: 4-August 07


Do I have to say include C:\... , or do i just say include\includelib (Filewhatever.dll\lib)?

Even though I state it in the Paths tab in WinAsm Studio Options, it still says theres a problem.

For example I put this program: (Iczelion's tutorial 2)

CODE
.386
.model flat,stdcall
option casemap:none
include windows.inc
include kernel32.inc
includelib kernel32.lib
include user32.inc
includelib user32.lib

.data
MsgBoxCaption  db "Iczelion Tutorial No.2",0
MsgBoxText       db "Win32 Assembly is Great!",0



I get a big ERROR, and I have to state the whole file path. Am I putting them in right?

CODE
.code
start:
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption, MB_OK
invoke ExitProcess, NULL
end start

PMEmail Poster
Top
SeaFarer
Quote Post


Extremely Active Member
******

Group: Members
Posts: 1753
Member No.: 1464
Joined: 2-September 05


Spartan,

If you have defined your paths correctly in WinAsm Studio Options, you only need to say this...

CODE
Include kernel32.inc
Includelib kernel32.lib


versus

CODE
include \masm32\inc\kernel32.inc
Includelib \masm32\lib\kernel32.lib


Also...

Why don't you try sticking with the WinAsm Studio examples to get a better idea of how the IDE works?

Iczelion's examples are standard MASM examples not written in the Studio. Most if not all require modification in order to compile with the WinAsm Studio. wink.gif
PM
Top
Spartan-478
Quote Post


New Member
*

Group: Members
Posts: 18
Member No.: 5457
Joined: 4-August 07


Yeah, thats where I got the shorter version from, but I always get an error using it.

I followed the tutorial with the path and file options but when I try to include it wont work. sad.gif
PMEmail Poster
Top
samael
Quote Post


Typo-lord
******

Group: Moderators
Posts: 404
Member No.: 5187
Joined: 10-June 07


Spartan-478,

I just compiled the exact copy of your code without problems...
Here's my "Files & Paths" configuration: (Accessible through: Tools -> Options..., tab "Files & Paths").

Attached Image
Attached Image
PM
Top
Spartan-478
Quote Post


New Member
*

Group: Members
Posts: 18
Member No.: 5457
Joined: 4-August 07


I checked the tutorial again and I just moved the WinAsm file to my C:\ Drive. It works fine now. Thanks Guys!
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages (2) [1] 2  Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google