WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
 
Forum
Pages (2) [1] 2   ( Go to first unread post )

ML Nonfatal Error A2039: line too long, what is the maximum expected length of a line of code in MASM?

Lachdahnan
Quote Post


Member
**

Group: Members
Posts: 24
Member No.: 5739
Joined: 13-January 08


R:\WinAsm\WIN.ASM(48) : error A2039: line too long

This is the error I am getting when trying to compile tutorial number 3, I made some very small changes here and there, but I am not sure what I did to upset it. tongue.gif Ill include the zip.

Attached File ( Number of downloads: 23 )
 Login or Register to download
PMEmail Poster
Top
Jupiter
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 672
Member No.: 773
Joined: 10-November 04


Hi Lachdahnan
In your source you use:
CODE
invoke CreateWindowEx,
 NULL,


but there must be "\" symbol at the end of line that you want to break

CODE
invoke CreateWindowEx,\
 NULL,\
PMEmail Poster
Top
Lachdahnan
Quote Post


Member
**

Group: Members
Posts: 24
Member No.: 5739
Joined: 13-January 08


Ok, I added the '\' like you said, I even tried filling it in all the way down with the rest of the operands (hope Im saying that right). But I am still getting the error. Any ideas?

Heres a new zip showing what I did.

*Edit*
Ill paste the code and each of the changes I made too. Minus my comments.


FIRST ATTEMPT:
CODE
INVOKE CreateWindowEx,
NULL,
ADDR ClassName,
ADDR AppName,
WS_OVERLAPPEDWINDOW,
650,
    500,
    640,
    480,
    NULL,
    NULL,
    hInst,
    NULL



SECOND ATTEMPT:

CODE
INVOKE CreateWindowEx,\
NULL,\
ADDR ClassName,
ADDR AppName,
WS_OVERLAPPEDWINDOW,
650,
    500,
    640,
    480,
    NULL,
    NULL,
    hInst,
    NULL




THIRD ATTEMPT:

CODE
INVOKE CreateWindowEx,\
NULL,\
ADDR ClassName,\
ADDR AppName,\
WS_OVERLAPPEDWINDOW,\
650,\
    500,\
    640,\
    480,\
    NULL,\
    NULL,\
    hInst,\
    NULL




All these combinations still give me the same error on line 48
CODE
INVOKE CreateWindowEx,


Attached File ( Number of downloads: 17 )
 Login or Register to download
PMEmail Poster
Top
Jupiter
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 672
Member No.: 773
Joined: 10-November 04


try to create project from template - there must be all ok
or just write in single line, without break
PMEmail Poster
Top
Lachdahnan
Quote Post


Member
**

Group: Members
Posts: 24
Member No.: 5739
Joined: 13-January 08


Well it seems to be that I added too much text in my comments. I removed all comments and cleaned it up. Assembled fine, added a few comments, fine. Added a wall of comments, and then it got upset again. So I guess there is only so much comment space allowed per... funtion.. thingy? biggrin.gif Anyway, thought I would share that with ya tongue.gif
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