1. Expected parameter Name

Hello all. I am new to the forum and euphoria but am enjoying it very much so far. I just seem to have a small problem. When using version 40b3, if i try run a program i get an error message of,

"global procedure set handler, expected parameter name instead"

If i use version 3.11 everything seems to be fine its, its just 40b2, and 40b3. I have the winlib32 but not sure if i am missing something.

Any help with this would be most appreciated.

Thanks

new topic     » topic index » view message » categorize

2. Re: Expected parameter Name

sethdomain said...

... i get an error message of,

"global procedure set handler, expected parameter name instead"

Can you show us the actual line of code that causes this message?

new topic     » goto parent     » topic index » view message » categorize

3. Re: Expected parameter Name

Hey there it comes up as:

C:winlib32\include\win32lib.ew:4033 
found reserved word "routine" but was expecting parameter instead. 
global procedure set handler(object id, object htype, object routine) 
I hope this is what you meant, but please let me know if there is anything else you need. Ive tried checking the path but cant see an error.

Thanks again!

[matt: edited to use triple braces for the console output]

new topic     » goto parent     » topic index » view message » categorize

4. Re: Expected parameter Name

sethdomain said...

Hey there it comes up as:

C:winlib32\include\win32lib.ew:4033 
found reserved word "routine" but was expecting parameter instead. 
global procedure set handler(object id, object htype, object routine) 
I hope this is what you meant, but please let me know if there is anything else you need. Ive tried checking the path but cant see an error.

In euphoria v4, routine has become a reserved word. There are a few other gotchas along this line that seem to commonly affect legacy code. You can fix this by changing the variable's name slightly (e.g., by adding a trailing underscore).

Here is a list of new keywords in 4.0 (from keylist.e):

	{"continue",  SC_KEYWORD, CONTINUE,  0, 0, 0}, 
	{"ifdef",     SC_KEYWORD, IFDEF,     0, 0, 0}, 
	{"elsedef",   SC_KEYWORD, ELSEDEF,   0, 0, 0}, 
	{"elsifdef",  SC_KEYWORD, ELSIFDEF,  0, 0, 0}, 
	{"label",     SC_KEYWORD, LABEL,     0, 0, 0}, 
	{"loop",      SC_KEYWORD, LOOP,      0, 0, 0}, 
	{"until",     SC_KEYWORD, UNTIL,     0, 0, 0}, 
	{"entry",     SC_KEYWORD, ENTRY,     0, 0, 0}, 
	{"break",     SC_KEYWORD, BREAK,     0, 0, 0}, 
	{"retry",     SC_KEYWORD, RETRY,     0, 0, 0}, 
	{"enum",      SC_KEYWORD, ENUM,      0, 0, 0}, 
	{"export",    SC_KEYWORD, EXPORT,    0, 0, 0}, 
	{"switch",    SC_KEYWORD, SWITCH,    0, 0, 0}, 
	{"case",      SC_KEYWORD, CASE,      0, 0, 0}, 
	{"override",  SC_KEYWORD, OVERRIDE,  0, 0, 0}, 
	{"goto",      SC_KEYWORD, GOTO,      0, 0, 0}, 
	{"public",    SC_KEYWORD, PUBLIC,    0, 0, 0 }, 
	{"fallthru",  SC_KEYWORD, FALLTHRU,  0, 0, 0}, 

Matt

new topic     » goto parent     » topic index » view message » categorize

5. Re: Expected parameter Name

Basically, you're trying to use a library (Win32Lib) with Euphoria 4.0 that is not yet compatible with 4.0.

I do have a Win32Lib that is compatible with 4.0 and I use it all the time with the IDE. The changed files can be found at my web site.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Expected parameter Name

Thanks very much for this. I will definately try it as soon as possible. Will let you know how it goes. Thanks again

new topic     » goto parent     » topic index » view message » categorize

7. Re: Expected parameter Name

Using win32lib_0_70_4a.zip and win32lib-fixes.zip results in:

<0052>:: can't find 'w32version.ew' in any of ... c:\misc\euphoria\win32lib\include . c:\misc\euphoria

on Vista 64 Home Premium. Is this file available or creatable?

new topic     » goto parent     » topic index » view message » categorize

8. Re: Expected parameter Name

kenneth said...

Using win32lib_0_70_4a.zip and win32lib-fixes.zip results in:

<0052>:: can't find 'w32version.ew' in any of ... c:\misc\euphoria\win32lib\include . c:\misc\euphoria

on Vista 64 Home Premium. Is this file available or creatable?

Kenneth, my "fixes" are for the latest SVN revision of Win32Lib. The file you are missing is in that repository, but you might also be missing others. I would get a SVN client and check out the latest 'n' greatest. Tortoise-SVN is a good Windows client.

new topic     » goto parent     » topic index » view message » categorize

9. Re: Expected parameter Name

euphoric said...

Kenneth, my "fixes" are for the latest SVN revision of Win32Lib. The file you are missing is in that repository, but you might also be missing others. I would get a SVN client and check out the latest 'n' greatest. Tortoise-SVN is a good Windows client.

Thanks.

new topic     » goto parent     » topic index » view message » categorize

10. Re: Expected parameter Name

euphoric said...

Kenneth, my "fixes" are for the <snip>

I got win32lib downloaded and working and an old file converted. On the first day out, though, I haven't yet fallen in love with self, event, and params. :)

new topic     » goto parent     » topic index » view message » categorize

11. Re: Expected parameter Name

Thanks for the help all. I treied downloading the win32lib trunk but still the same. With win32ex it starts up but then just freazes. Ill stick with the 3.11 version for now and see what i can do until i can get 4 working properly.

Thanks and good luck!

new topic     » goto parent     » topic index » view message » categorize

12. Re: Expected parameter Name

Hey again.

I managed to get win32lib working with version 4 so am very relieved about that. I think it was my error all along for not checking properly and just thinking a bit. I just seem to get one or two errors when i try to run a program in an editor of :

"CreateProcessHi Failed"

The actual library is working fine though when i use the euphoria editor. Thanks again for listening and helping, i'll hopefully return the favour one day.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu