from about two days i'm going crazy with my first Ideal mode application

im'doing:





IDEAL
JUMPS
LOCALS @@
P486
MODEL FLAT, STDCALL


udataseg

STRUC WNDCLASSEX

cbSize DD ?
style DD ?
lpfnWndProc DD ?
cbClsExtra DD ?
cbWndExtra DD ?
hInstance DD ?
hIcon DD ?
hCursor DD ?
hbrBackground DD ?
lpszMenuName DD ?
lpszClassName DD ?
hIconSm DD ?
ENDS WNDCLASSEX

wc WNDCLASSEX <>



and after compiling i always get



**Error** X_sister.asm(157) Symbol already different kind: WNDCLASSEX


line 157 is the one wc WNDCLASSEX<>

The strange incredible thing is that all the examples i found on manual and on the net seems declare struct just as i do...

Any help will be very appreciated. THX B7
Posted on 2002-02-02 05:03:26 by Bit7
It seems like a bug in tasm32 - if you use tasm.exe instead, it works correctly. tasm32 in ideal mode accepts only unlabeled structs, strange...
Posted on 2002-02-02 11:49:43 by Tomasz Grysztar
:(

so after all the saturday crashing my head to understand the reason of the error.. seems i discovered a tasm32 bug...

Privalov

infinite tanks , you make me stop to become crazy looking all the examples !

And i've also discovered this...






Posted on 2002-02-02 12:37:04 by Bit7
Privalov,

:alright:

problem seems solved...

It's really a tasm32 Version5.0 BUG !

since i've installed a patch that Borland publish as for "C++ builder compatibility", it becames Version 5.0r and works !

Many thanks
Posted on 2002-02-02 12:53:15 by Bit7
Where did you obtain this patch?
Posted on 2002-02-02 12:57:35 by Tomasz Grysztar
hmm, I haven't encountered this kind of bug before since when I got my TASM 5.0 I immediately upgraded to 5.0r. As for the patch, you can get it at borland for free. Try searching borland for turbo assembler and down below the page you'll see a patch.

Instead of the usual way of assigning values to the WNDCLASSEX structure you can initialize the structure on the dataseg.

E.G.

wcx WNDCLASSEX<SIZE WNDLCASSEX, CS_VREDRAW or CS_HREDRAW ...>

It'll save you a lot of typing. If you see this kind of style you'll know for sure that person is using TASM(but that is just a stereotype). :grin:
Posted on 2002-02-02 13:44:19 by stryker
Privalov,

below the link of the Borland site where you'll find the patch



now with the patch everything works fine :)

i finally can do

wc WNDCLASSEX <>

as indicated in the TASM manual !

Nut Who will give me back 3 days of HEAD-KNOCKING to understand the reason of a BUG ?
Surely not Mr. Borland that don't even remember about Tasm, it don't even appear on the supported softwares of the Borland site .....

Probably, as said in other messages of this kind, Borland don't intend to spend other time on it....

That could be another reason to switch to masm....

Borland TASM patch
Posted on 2002-02-02 16:42:46 by Bit7
there is a forum at borland site that is still active about TASM:

http://newsgroups.borland.com/cgi-bin/dnewsweb?cmd=xover&group=borland.public.tasm&utag=

i got myself some answers there :)

P.S.
=======
i do not use ideal mode, even if its better than MASM its too much away from the standards and who knows when i need to assemble with MASM ?... i prefix structures members with structure name instead... so MASM will also assemble my files

i guess a little file include converter is not that hard to do...
so you can transform MASM include files with little work to TASM ones...
Posted on 2002-02-03 04:51:54 by BogdanOntanu