News:

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

fileio.open error

Started by desard, August 26, 2010, 11:18:03 AM

Previous topic - Next topic

desard

Hey guys i am getting a unidentified symbol near <<win>> error.


fileio.open( "myfile.txt", win.GENERIC_READ | win.GENERIC_WRITE );

my hla wich is a 2.13 version is showing me the above error when e compile my program.
Does anyone know why this might happen. i have had this problem before and i have posted it some weeks ago.

desard

C:\hla\Projekte>hla setoputputattr.hla
Error in file "setoputputattr.hla" at line 14 [errid:77199/hlaparse.bsn]:
Expected ':', encountered '('
(Possible undefined ID '.setOutputAttr').
Near: << ( >>

HLAPARSE assembly failed with 1 errors
Can anybody tell me why i get the "undefined ID .setOutputAttr. I am sure the script is fine and i am using the stdlib.hhf.
The odd thing is that i can actually compile other scripts like the "Hello World" etc.
Please help

Sevag.K

Quote from: Desard on August 26, 2010, 11:19:18 AM
C:\hla\Projekte>hla setoputputattr.hla
Error in file "setoputputattr.hla" at line 14 [errid:77199/hlaparse.bsn]:
Expected ':', encountered '('
(Possible undefined ID '.setOutputAttr').
Near: << ( >>

HLAPARSE assembly failed with 1 errors
Can anybody tell me why i get the "undefined ID .setOutputAttr. I am sure the script is fine and i am using the stdlib.hhf.
The odd thing is that i can actually compile other scripts like the "Hello World" etc.
Please help

i think we settled the setOutputAttr problem in this thread:

http://www.masm32.com/board/index.php?topic=14277.0

Sevag.K

Quote from: Desard on August 26, 2010, 11:18:03 AM
Hey guys i am getting a unidentified symbol near <<win>> error.


fileio.open( "myfile.txt", win.GENERIC_READ | win.GENERIC_WRITE );

my hla wich is a 2.13 version is showing me the above error when e compile my program.
Does anyone know why this might happen. i have had this problem before and i have posted it some weeks ago.

you're using windows constants for the standard library.  the proper standard library access mode tag is fileio.rw

fileio.open( "myfile.txt", fileio.rw );

the access modes are

fileio.r - read
fileio.rw -read/write
fileio.w -write
fileio.a -append


also, if you do want to access windows specific functions and constants, use the w namespace.

desard

i will try this one thanks a lot  :U

desard

It worked man.
You are the best thank you very much  :U