1. EU4.1 struct branch
- Posted by andi49 Feb 07, 2014
- 1662 views
Hallo
i played around with the eu4.1 struct branch.
I'am pretty sure i messed up something but i can't help myself.
I got this error message running the window.exw demo.
C:\eu4.1-32-struct\demo\win32\window.exw:243 <0074>:: Errors resolving the following references: 'cbSize' (..\demo\win32\winstruct.ew:225) could not be resolved as a member of WNDCLASSEX.cbSize (MEMSTRUCT_ACCESS). 'style' (..\demo\win32\winstruct.ew:226) could not be resolved as a member o f WNDCLASSEX.style (MEMSTRUCT_ACCESS). 'lpfnWndProc' (..\demo\win32\winstruct.ew:227) could not be resolved as a me mber of WNDCLASSEX.lpfnWndProc (MEMSTRUCT_ACCESS). 'cbClsExtra' (..\demo\win32\winstruct.ew:228) could not be resolved as a mem ber of WNDCLASSEX.cbClsExtra (MEMSTRUCT_ACCESS). 'cbWndExtra' (..\demo\win32\winstruct.ew:229) could not be resolved as a mem ber of WNDCLASSEX.cbWndExtra (MEMSTRUCT_ACCESS). 'hInstance' (..\demo\win32\winstruct.ew:230) could not be resolved as a memb er of WNDCLASSEX.hInstance (MEMSTRUCT_ACCESS). 'hIcon' (..\demo\win32\winstruct.ew:235) could not be resolved as a member o f WNDCLASSEX.hIcon (MEMSTRUCT_ACCESS). 'hIconSm' (..\demo\win32\winstruct.ew:236) could not be resolved as a member of WNDCLASSEX.hIconSm (MEMSTRUCT_ACCESS). 'hCursor' (..\demo\win32\winstruct.ew:237) could not be resolved as a member of WNDCLASSEX.hCursor (MEMSTRUCT_ACCESS). 'hbrBackground' (..\demo\win32\winstruct.ew:238) could not be resolved as a member of WNDCLASSEX.hbrBackground (MEMSTRUCT_ACCESS). 'lpszMenuName' (..\demo\win32\winstruct.ew:239) could not be resolved as a m ember of WNDCLASSEX.lpszMenuName (MEMSTRUCT_ACCESS). 'lpszClassName' (..\demo\win32\winstruct.ew:240) could not be resolved as a member of WNDCLASSEX.lpszClassName (MEMSTRUCT_ACCESS). 'cbSize' (..\demo\win32\window.exw:238) could not be resolved as a member of WNDCLASSEX.cbSize (MEMSTRUCT_ACCESS). 'style' (..\demo\win32\window.exw:239) could not be resolved as a member of WNDCLASSEX.style (MEMSTRUCT_ACCESS). 'lpfnWndProc' (..\demo\win32\window.exw:240) could not be resolved as a memb er of WNDCLASSEX.lpfnWndProc (MEMSTRUCT_ACCESS). 'cbClsExtra' (..\demo\win32\window.exw:241) could not be resolved as a membe r of WNDCLASSEX.cbClsExtra (MEMSTRUCT_ACCESS). 'cbWndExtra' (..\demo\win32\window.exw:242) could not be resolved as a membe r of WNDCLASSEX.cbWndExtra (MEMSTRUCT_ACCESS). 'hInstance' (..\demo\win32\window.exw:243) could not be resolved as a member of WNDCLASSEX.hInstance (MEMSTRUCT_ACCESS). wndclass.WNDCLASSEX.hInstance = 0 ^ Press Enter
I did not change anything at the code. But i do not understand the error message.
Maybe someone can tell me what the error means so i can start somewhere to find my mistake.
Andreas
2. Re: EU4.1 struct branch
- Posted by ne1uno Feb 09, 2014
- 1596 views
Hallo
i played around with the eu4.1 struct branch.
I'am pretty sure i messed up something but i can't help myself.
I did not change anything at the code. But i do not understand the error message.
Maybe someone can tell me what the error means so i can start somewhere to find my mistake.
Andreas
it's nothing you did.
that demo needs to be reverted to an earlier version. some merge messed it up. the other demos haven't been converted to use structs yet so are probably ok.
3. Re: EU4.1 struct branch
- Posted by andi49 Feb 09, 2014
- 1558 views
Hallo
i played around with the eu4.1 struct branch.
I'am pretty sure i messed up something but i can't help myself.
I did not change anything at the code. But i do not understand the error message.
Maybe someone can tell me what the error means so i can start somewhere to find my mistake.
Andreas
it's nothing you did.
that demo needs to be reverted to an earlier version. some merge messed it up. the other demos haven't been converted to use structs yet so are probably ok.
will this be fixed? Or do i have to file a ticket for this?
As i have uploaded builds with this problem i feel some kind of personally affected .
Andreas
4. Re: EU4.1 struct branch
- Posted by mattlewis (admin) Feb 10, 2014
- 1548 views
Hallo
i played around with the eu4.1 struct branch.
I'am pretty sure i messed up something but i can't help myself.
I did not change anything at the code. But i do not understand the error message.
Maybe someone can tell me what the error means so i can start somewhere to find my mistake.
it's nothing you did.
that demo needs to be reverted to an earlier version. some merge messed it up. the other demos haven't been converted to use structs yet so are probably ok.
There are issues with the merge, but that doesn't account for the error he's seeing. This looks like a regression. I tried the following in t_memstruct.e and got the same error:
procedure wndclassex_members() atom foo = allocate( sizeof( WNDCLASSEX ) ) foo.WNDCLASSEX.cbSize = sizeof( WNDCLASSEX ) test_pass( "WNDCLASSEX members resolve correctly" ) end procedure wndclassex_members()
It seems to be some sort of scope problem. When I put the memstruct in the file directly, it works.
Matt
5. Re: EU4.1 struct branch
- Posted by andi49 Feb 11, 2014
- 1411 views
Hallo
i played around with the eu4.1 struct branch.
I'am pretty sure i messed up something but i can't help myself.
I did not change anything at the code. But i do not understand the error message.
Maybe someone can tell me what the error means so i can start somewhere to find my mistake.
it's nothing you did.
that demo needs to be reverted to an earlier version. some merge messed it up. the other demos haven't been converted to use structs yet so are probably ok.
There are issues with the merge, but that doesn't account for the error he's seeing. This looks like a regression. I tried the following in t_memstruct.e and got the same error:
procedure wndclassex_members() atom foo = allocate( sizeof( WNDCLASSEX ) ) foo.WNDCLASSEX.cbSize = sizeof( WNDCLASSEX ) test_pass( "WNDCLASSEX members resolve correctly" ) end procedure wndclassex_members()
It seems to be some sort of scope problem. When I put the memstruct in the file directly, it works.
Matt
Hallo
I found the solution why I'am was confused.
If have different versions of Euphoria on my system. My editor is setup to use the version inside the diretorytree ../eu4/bin
Windows seems to change the sequence, on the count a program is used, in the right click menue.
So i got sometimes my default editor and other times my copy where i'am working on.
Ans so i use different Versions of Euphoria. My fault.
But now i can say:
Euphoria Interpreter v4.1.0 Struct branch mybuilt 32-bit Windows, Using System Memory Revision Date: 2013-04-11, Id: 48f1be85c895 ERROR: Must specify the file to be interpreted on the command line
This version is working like expected.
If the id changed, becouse i changed the text then maybe the date helps you a little.
Andreas