News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

[HELP] syntax error again

Started by hide2may, August 25, 2008, 11:11:42 AM

Previous topic - Next topic

hide2may

Thanks to Aiva  :cheekygreen: , I've got the "@display" one.

I then move on to tutorial 4 but quickly struck again. Here is the link:

http://webster.cs.ucr.edu/Page_win32/IczelionTuts/tut4.html

After renaming to aSimpleWindow2, fixing the @display typo and commenting out the arg.CmdLn() thing, still get the following error while compiling:

Error in file "aSimpleWindow2.hla" at line 92 [errid:107961/hlaparse.c]:
syntax error, unexpected '('.
Near: << ( >>

aSimpleWindow2.hla [135]:
error: undefined symbol.


However, the code near line 92 shows no error:

   else
      win.DefWindowProc( hWnd, uMsg, wParam, lParam );
      exit( WndProc );
   endif;
   sub( eax, eax );
end WndProc;


Besides, the code near line 135 seems okay too:

   mov( hInstance, wc.hInstance );
   mov( win.COLOR_WINDOW+1, wc.hbrBackground );
   mov( NULL, wc.lpszMenuName );
   mov( ClassName, wc.lpszClassName );

So, how should I proceed?

Thanks in advance,
-hide2may

hide2may

Just wonder if anything wrong with the following line:

static GetLastError:procedure; external( "__imp__GetLastError@0" );

Thanks,
-hide2may

hide2may

Problem solved  :clap:

Line 92 should be:

exit WndProc;

Then the source can compile and run (with the following warning though):
POLINK: warning: /SECTION:.bss ignored; section is missing.

Thanks guys  :dance:

Aiva

Now i see where you are taking this from   :bg this code is outdated, get new examples from webster under hla downloads, icz tuts are included in there. In your case there is error at 92 line because () are not needed , it should look like this exit WndProc; , second error is not at line 135, dont be confused, that error states that () is not defined, that is because it is not supported anymore.

hide2may


DarkWolf

You can ignore the POLINK error about the .bss section.
HLA doesn't use it and never makes it. That is what POLINK is telling you.
--
Where's there's smoke, There are mirrors.
Give me Free as in Freedom not Speech or Beer.
Thank You and Welcome to the Internet.